fix: Ensure error handling during SPN intel initialization
This commit is contained in:
@@ -137,7 +137,7 @@ func start() error {
|
|||||||
|
|
||||||
// Initialize SPN intel.
|
// Initialize SPN intel.
|
||||||
// Do this synchronously to ensure everything is up to date before
|
// 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 {
|
if err := registerIntelUpdateHook(); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
@@ -146,6 +146,9 @@ func start() error {
|
|||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
// Subscribe to updates of cranes.
|
// Subscribe to updates of cranes.
|
||||||
startDockHooks()
|
startDockHooks()
|
||||||
|
|||||||
Reference in New Issue
Block a user