sealing: retrySoftErr: Better comment on ctx handling
This commit is contained in:
parent
0a83896589
commit
882f00fbf3
@ -237,11 +237,12 @@ func retrySoftErr(ctx context.Context, cb func() error) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// retry
|
// check if the context got cancelled early
|
||||||
if ctx.Err() != nil {
|
if ctx.Err() != nil {
|
||||||
return ctx.Err()
|
return ctx.Err()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// retry
|
||||||
time.Sleep(SoftErrRetryWait)
|
time.Sleep(SoftErrRetryWait)
|
||||||
} else {
|
} else {
|
||||||
return err
|
return err
|
||||||
|
Loading…
Reference in New Issue
Block a user