mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-21 00:11:42 +02:00
simplify task package implementation
This commit is contained in:
@@ -159,8 +159,7 @@ func main() {
|
||||
|
||||
// grafully shutdown
|
||||
logging.Info().Msg("shutting down")
|
||||
task.CancelGlobalContext()
|
||||
_ = task.GlobalContextWait(time.Second * time.Duration(config.Value().TimeoutShutdown))
|
||||
_ = task.GracefulShutdown(time.Second * time.Duration(config.Value().TimeoutShutdown))
|
||||
}
|
||||
|
||||
func prepareDirectory(dir string) {
|
||||
|
||||
Reference in New Issue
Block a user