Skip to content

Commit

Permalink
fix: Use correct context in main
Browse files Browse the repository at this point in the history
  • Loading branch information
yorik committed Aug 7, 2024
1 parent 42989df commit 295e205
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func must(err error) {
}

func main() {
ctx := context.TODO()
ctx := context.Background()
if err := envconfig.Process(ctx, config); err != nil {
log.Fatal(err)
}
Expand Down Expand Up @@ -107,7 +107,7 @@ func main() {
Logger: logger,
}

must(a.Run(context.TODO()))
must(a.Run(ctx))
}

func buildLogger() (logr.Logger, error) {
Expand Down

0 comments on commit 295e205

Please sign in to comment.