Merge pull request #222 from foomo/fix/service-enabler-watch-contecxt

fix: nil context
This commit is contained in:
Kevin Franklin Kim 2024-12-04 16:44:22 +01:00 committed by GitHub
commit 89b4c397ab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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