From 61bf95e45727b03568a2c3c141016e09cf7734bb 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 38b3d42..1777ba8 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)