This commit is contained in:
aozhiwei 2024-11-16 15:05:51 +08:00
parent 41674f892a
commit b8ccbdd770

View File

@ -30,10 +30,13 @@ func (this *log) unInit() {
func (this *log) saveToDb() {
for true {
this.logQueue.Fetch()
if this.logQueue.IsEmpty() {
this.loopCond.L.Lock()
this.loopCond.Wait()
this.loopCond.L.Unlock()
}
}
}
func (this *log) AddAsyncLog(accountId string, logType string, subLogType string, currTime int64,