From fb66c0fd0f434ea46dfb2699525d5a59b019b457 Mon Sep 17 00:00:00 2001
From: haozhifeng <haozhifeng>
Date: 星期四, 12 八月 2021 10:43:23 +0800
Subject: [PATCH] 时间字段类型修改
---
logc.go | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/logc.go b/logc.go
index 3c79b5c..dea2af5 100644
--- a/logc.go
+++ b/logc.go
@@ -1,7 +1,6 @@
package logc
import (
- "basic.com/valib/bhomebus.git"
"basic.com/valib/bhshmq.git/proto/source/bhome_msg"
"fmt"
"sync"
@@ -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