From 59ac3141ef3e9eb741c2927a7adfd3cb52b21741 Mon Sep 17 00:00:00 2001
From: liuxiaolong <liuxiaolong@aiotlink.com>
Date: 星期二, 31 八月 2021 15:03:39 +0800
Subject: [PATCH] use fjt c_bhomebus
---
logc.go | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/logc.go b/logc.go
index 3c79b5c..7ae7c50 100644
--- a/logc.go
+++ b/logc.go
@@ -1,8 +1,7 @@
package logc
import (
- "basic.com/valib/bhomebus.git"
- "basic.com/valib/bhshmq.git/proto/source/bhome_msg"
+ "basic.com/valib/c_bhomebus.git/proto/source/bhome_msg"
"fmt"
"sync"
"time"
@@ -109,6 +108,10 @@
deliverLog(log, timeout)
}
+func SaveRuleServerLog(ruleServerPushLog RuleServerPushLog, timeout time.Duration) {
+ deliverLog(&ruleServerPushLog, timeout)
+}
+
func deliverLog(l LogPrinter, timeout time.Duration) {
select {
case logCh <- l:
@@ -163,6 +166,7 @@
const (
OperationLogTopic = "operationLogSaveTopic"
ScheduleLogTopic = "scheduleLogSaveTopic"
+ RuleServerLogTopic = "ruleServerLogSaveTopic"
)
func saveLoop(logCallback LogReportCallback, wg *sync.WaitGroup, done chan struct{}) {
@@ -181,8 +185,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