Skip to content

Commit

Permalink
fix high cpu usage
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouop0 committed Aug 13, 2024
1 parent f149965 commit 9f0d770
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/handler/calculateLost.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,6 @@ func CalculateLostBond(ctx *svc.ServiceContext) {
disputeGame.CalculateLost = true
ctx.DB.Save(disputeGame)
}
time.Sleep(5 * time.Second)
}
}
1 change: 1 addition & 0 deletions internal/handler/syncDispute.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,6 @@ func SyncDispute(ctx *svc.ServiceContext) {
panic(err)
}
}
time.Sleep(3 * time.Second)
}
}

0 comments on commit 9f0d770

Please sign in to comment.