Skip to content

Commit

Permalink
Make sure we save the context we cancel on Ctrl-C (#134)
Browse files Browse the repository at this point in the history
So that control-c kills the app properly.

Fixes #133
  • Loading branch information
pipt authored Jul 4, 2024
1 parent f68b02e commit 348d929
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/catalog-importer/cmd/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func Run(ctx context.Context) (err error) {
stdlog.SetOutput(kitlog.NewStdlibAdapter(logger))

// Root context to the application.
_, cancel := context.WithCancel(context.Background())
ctx, cancel := context.WithCancel(context.Background())
defer cancel()

// Setup signal handling.
Expand Down

0 comments on commit 348d929

Please sign in to comment.