From 9405599d67492ef207e2bb242cd116f019b861f6 Mon Sep 17 00:00:00 2001
From: haozhifeng <haozhifeng>
Date: 星期四, 01 七月 2021 19:18:11 +0800
Subject: [PATCH] 新增轮询开始时间结束时间字段

---
 logc.go |   13 ++++++-------
 1 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/logc.go b/logc.go
index e3f36f5..b5fd920 100644
--- a/logc.go
+++ b/logc.go
@@ -1,8 +1,7 @@
 package logc
 
 import (
-	"basic.com/valib/bhomebus.git"
-	"encoding/json"
+	"basic.com/valib/bhshmq.git/proto/source/bhome_msg"
 	"fmt"
 	"sync"
 	"time"
@@ -45,7 +44,7 @@
 }
 
 type LogRegister struct {
-	Nodes      []bhomebus.NetNode
+	Nodes      []bhome_msg.BHAddress
 	Topic      string
 	Payload     []byte
 }
@@ -94,7 +93,7 @@
 	}
 
 	if msg == "" {
-		retrun
+		return
 	}
 
 	log := &ScheduleLog{
@@ -109,7 +108,7 @@
 	deliverLog(log, timeout)
 }
 
-func deliverLog(l LogPrinter, timeout time.Duration)  {
+func deliverLog(l LogPrinter, timeout time.Duration) {
 	select {
 	case logCh <- l:
 		return
@@ -181,8 +180,8 @@
 			if err != nil {
 				logger.Error("failed to Marshal", log)
 			} else {
-					var nodes []bhomebus.NetNode
-					nodes = append(nodes, bhomebus.NetNode{})
+					var nodes []bhome_msg.BHAddress
+					nodes = append(nodes, bhome_msg.BHAddress{})
 
 					reg := &LogRegister {
 						nodes,

--
Gitblit v1.8.0