Fix timer usage

This commit is contained in:
世界
2024-04-08 11:45:00 +08:00
parent 4a4180bde5
commit d20a389043
8 changed files with 28 additions and 25 deletions
+1 -1
View File
@@ -199,7 +199,7 @@ func run() error {
}
func closeMonitor(ctx context.Context) {
time.Sleep(C.DefaultStopFatalTimeout)
time.Sleep(C.FatalStopTimeout)
select {
case <-ctx.Done():
return