fixed graceful shutdown handling

This commit is contained in:
Gani Georgiev
2023-12-08 21:16:48 +02:00
parent d86e20b7f2
commit 506b759560
5 changed files with 35 additions and 13 deletions
+1 -1
View File
@@ -110,7 +110,7 @@ func main() {
// GitHub selfupdate
ghupdate.MustRegister(app, app.RootCmd, ghupdate.Config{})
app.OnAfterBootstrap().Add(func(e *core.BootstrapEvent) error {
app.OnAfterBootstrap().PreAdd(func(e *core.BootstrapEvent) error {
app.Dao().ModelQueryTimeout = time.Duration(queryTimeout) * time.Second
return nil
})