fixed graceful shutdown handling

This commit is contained in:
Gani Georgiev committed 2023-12-08 21:16:48 +02:00
1 parent d86e20b7f2
commit 506b759560
5 files changed
+35 -13

No files matched your search

+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
})