From 9ea51ccfd850ea736e207e2bc8bc73ccb7950a8a Mon Sep 17 00:00:00 2001 From: boyce Date: Tue, 7 May 2024 18:57:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96RankService?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sysservice/rankservice/MongodbPersist.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysservice/rankservice/MongodbPersist.go b/sysservice/rankservice/MongodbPersist.go index 6694fb1..0ce0831 100644 --- a/sysservice/rankservice/MongodbPersist.go +++ b/sysservice/rankservice/MongodbPersist.go @@ -263,7 +263,7 @@ func (mp *MongoPersist) JugeTimeoutSave() bool{ func (mp *MongoPersist) persistCoroutine(){ defer mp.waitGroup.Done() - for atomic.LoadInt32(&mp.stop)==0 || mp.hasPersistData(){ + for atomic.LoadInt32(&mp.stop)==0 { //间隔时间sleep time.Sleep(time.Second*1)