Fix panic in k8s loadIngresses
Signed-off-by: Emile Vauge <emile@vauge.com>
This commit is contained in:
parent
be362f0d9f
commit
5a67d0ac84
5 changed files with 29 additions and 5 deletions
|
@ -177,7 +177,7 @@ func (d *Datastore) Begin() (Transaction, Object, error) {
|
|||
}
|
||||
ebo := backoff.NewExponentialBackOff()
|
||||
ebo.MaxElapsedTime = 60 * time.Second
|
||||
err = backoff.RetryNotify(operation, ebo, notify)
|
||||
err = backoff.RetryNotify(safe.OperationWithRecover(operation), ebo, notify)
|
||||
if err != nil {
|
||||
return nil, nil, fmt.Errorf("Datastore cannot sync: %v", err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue