From 2e3192b2eb03c9e87d9c0257547a0bd0951eae4d Mon Sep 17 00:00:00 2001 From: "zhangkun9038@dingtalk.com" Date: Tue, 14 Jan 2025 21:58:36 +0800 Subject: [PATCH] tracebug of insertPlate --- main.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 0e2bb8e..51116e2 100644 --- a/main.go +++ b/main.go @@ -2,11 +2,11 @@ package main import ( // "fmt" - "os" - "github.com/phyer/core" md "github.com/phyer/siaga/modules" logrus "github.com/sirupsen/logrus" + "os" + "sync" // "github.com/sirupsen/logrus" ) @@ -21,6 +21,7 @@ func main() { cr.StockRsiProcessChan = make(chan *core.StockRsi) cr.MakeMaXsChan = make(chan *core.Candle) cr.WriteLogChan = make(chan *core.WriteLog) + cr.Mu = &sync.Mutex{} cli, _ := cr.GetRedisLocalCli() cr.RedisRemoteCli = cli