From 584e19a2cd83a305c14ad7460e97bf4e49805fff Mon Sep 17 00:00:00 2001
From: yanghui <yanghui@aiotlink.com>
Date: 星期三, 16 六月 2021 19:15:06 +0800
Subject: [PATCH] test
---
logc.go | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/logc.go b/logc.go
index e3f36f5..3c79b5c 100644
--- a/logc.go
+++ b/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
--
Gitblit v1.8.0