diff --git a/app/main.go b/app/main.go index 0f314d00..59e0f000 100644 --- a/app/main.go +++ b/app/main.go @@ -85,6 +85,7 @@ func main() { log.Printf("[DEBUG] options: %+v", opts) ctx, cancel := context.WithCancel(context.Background()) + defer cancel() go func() { // catch signal and invoke graceful termination