notify: Always send "READY=1" even after an error (#7597)

This commit is contained in:
Francis Lavoie
2026-03-28 15:08:34 -04:00
committed by GitHub
parent 7a630f2910
commit 30b80bece8

View File

@@ -127,10 +127,9 @@ func Load(cfgJSON []byte, forceReload bool) error {
zap.Error(notifyErr),
zap.String("reload_err", err.Error()))
}
return
}
if err := notify.Ready(); err != nil {
Log().Error("unable to notify to service manager of ready state", zap.Error(err))
if notifyErr := notify.Ready(); notifyErr != nil {
Log().Error("unable to notify to service manager of ready state", zap.Error(notifyErr))
}
}()