logc.go
@@ -2,7 +2,7 @@ import ( "basic.com/valib/bhomebus.git" "encoding/json" "basic.com/valib/bhshmq.git/proto/source/bhome_msg" "fmt" "sync" "time" @@ -45,7 +45,7 @@ } type LogRegister struct { Nodes []bhomebus.NetNode Nodes []bhome_msg.BHAddress Topic string Payload []byte } @@ -94,7 +94,7 @@ } if msg == "" { retrun return } log := &ScheduleLog{ @@ -109,7 +109,7 @@ deliverLog(log, timeout) } func deliverLog(l LogPrinter, timeout time.Duration) { func deliverLog(l LogPrinter, timeout time.Duration) { select { case logCh <- l: return