mirror of
https://github.com/foomo/keel.git
synced 2025-10-16 12:35:34 +00:00
Merge pull request #222 from foomo/fix/service-enabler-watch-contecxt
fix: nil context
This commit is contained in:
commit
89b4c397ab
@ -40,8 +40,8 @@ func (w *ServiceEnabler) Name() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (w *ServiceEnabler) Start(ctx context.Context) error {
|
func (w *ServiceEnabler) Start(ctx context.Context) error {
|
||||||
w.watch(w.ctx) //nolint:contextcheck
|
|
||||||
w.ctx = ctx
|
w.ctx = ctx
|
||||||
|
w.watch(w.ctx) //nolint:contextcheck
|
||||||
if w.enabled() {
|
if w.enabled() {
|
||||||
if err := w.enable(w.ctx); err != nil { //nolint:contextcheck
|
if err := w.enable(w.ctx); err != nil { //nolint:contextcheck
|
||||||
return err
|
return err
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user