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
|
||||
}
|
||||
|
||||
// retry
|
||||
// check if the context got cancelled early
|
||||
if ctx.Err() != nil {
|
||||
return ctx.Err()
|
||||
}
|
||||
|
||||
// retry
|
||||
time.Sleep(SoftErrRetryWait)
|
||||
} else {
|
||||
return err
|
||||
|
Loading…
Reference in New Issue
Block a user