mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-10-12 04:53:47 +08:00
代码规范过滤,移除冗余代码,替换掉不推荐的包
This commit is contained in:
@@ -29,14 +29,12 @@ var (
|
||||
|
||||
// 信号监听
|
||||
signalListen(ctx, signalHandlerForOverall)
|
||||
select {
|
||||
case <-serverCloseSignal:
|
||||
service.CronClient().Stop(ctx)
|
||||
crons.StopALL()
|
||||
g.Log().Debug(ctx, "cron successfully closed ..")
|
||||
serverWg.Done()
|
||||
}
|
||||
|
||||
<-serverCloseSignal
|
||||
service.CronClient().Stop(ctx)
|
||||
crons.StopALL()
|
||||
g.Log().Debug(ctx, "cron successfully closed ..")
|
||||
serverWg.Done()
|
||||
return
|
||||
},
|
||||
}
|
||||
|
Reference in New Issue
Block a user