do not force exit to let all services shutdown gracefully

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
Jörn Friedrich Dreyer
2024-07-24 14:02:52 +02:00
parent 9d1515e8fc
commit 7999e2969b
35 changed files with 0 additions and 51 deletions
-2
View File
@@ -4,7 +4,6 @@ import (
"context"
"crypto/tls"
"fmt"
"os"
"github.com/oklog/run"
@@ -109,7 +108,6 @@ func Server(cfg *config.Config) *cli.Command {
natsServer.Shutdown()
cancel()
os.Exit(1)
})
return gr.Run()