sealing: retrySoftErr: Better comment on ctx handling

This commit is contained in:
Łukasz Magiera 2023-08-23 17:29:18 +02:00
parent 0a83896589
commit 882f00fbf3

View File

@ -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