make sure services have some time to deregister

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
Jörn Friedrich Dreyer
2024-10-28 14:47:11 +01:00
parent 32287da09e
commit 04632ad34c
18 changed files with 117 additions and 3 deletions
+2 -2
View File
@@ -41,11 +41,11 @@ func Server(cfg *config.Config) *cli.Command {
defer cancel()
// make sure the run group executes all interrupt handlers when the context is canceled
gr.Add(func() error {
<-ctx.Done()
cancel()
return nil
}, func(err error) {
}, func(_ error) {
})
gr.Add(func() error {