mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-11 21:54:50 +08:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9ea51ccfd8 | ||
|
|
5275db92bd | ||
|
|
19fd24d9db | ||
|
|
c9f30305ce | ||
|
|
9689b7b5fe |
2
go.mod
2
go.mod
@@ -1,4 +1,4 @@
|
||||
module github.com/duanhf2012/origin/v2
|
||||
module github.com/duanhf2012/origin
|
||||
|
||||
go 1.21
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user