This commit is contained in:
2025-03-13 22:35:49 +03:00
parent e7499f6148
commit 1cf5579e05

View File

@@ -6,6 +6,7 @@ import (
"os" "os"
"os/signal" "os/signal"
"sync" "sync"
"syscall"
"go.uber.org/zap" "go.uber.org/zap"
@@ -14,7 +15,7 @@ import (
) )
func main() { func main() {
ctx, cancel := signal.NotifyContext(context.Background(), os.Interrupt, os.Kill) ctx, cancel := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGTERM)
defer cancel() defer cancel()
cfg, err := config.NewConfig(ctx) cfg, err := config.NewConfig(ctx)