Skip to content

Commit

Permalink
Merge pull request #222 from foomo/fix/service-enabler-watch-contecxt
Browse files Browse the repository at this point in the history
fix: nil context
  • Loading branch information
franklinkim authored Dec 4, 2024
2 parents 6e009d2 + 82fc9d2 commit 89b4c39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion serviceenabler.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ func (w *ServiceEnabler) Name() string {
}

func (w *ServiceEnabler) Start(ctx context.Context) error {
w.watch(w.ctx) //nolint:contextcheck
w.ctx = ctx
w.watch(w.ctx) //nolint:contextcheck
if w.enabled() {
if err := w.enable(w.ctx); err != nil { //nolint:contextcheck
return err
Expand Down

0 comments on commit 89b4c39

Please sign in to comment.