fix: Ensure error handling during SPN intel initialization

This commit is contained in:
Alexandr Stelnykovych
2025-09-03 12:31:25 +03:00
parent 7a95b021a5
commit 2c6a1a993c

View File

@@ -137,7 +137,7 @@ func start() error {
// Initialize SPN intel.
// Do this synchronously to ensure everything is up to date before
module.mgr.Do("start", func(wc *mgr.WorkerCtx) error {
err = module.mgr.Do("start", func(wc *mgr.WorkerCtx) error {
if err := registerIntelUpdateHook(); err != nil {
return err
}
@@ -146,6 +146,9 @@ func start() error {
}
return nil
})
if err != nil {
return err
}
// Subscribe to updates of cranes.
startDockHooks()