update comment
This commit is contained in:
parent
117b197b2a
commit
15e7417fc5
@ -149,10 +149,11 @@ func (this *Migrator) retryOperation(operation func() error, notFatalHint ...boo
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// retryOperation attempts running given function, waiting 2^(n-1) seconds
|
// `retryOperationWithExponentialBackoff` attempts running given function, waiting 2^(n-1)
|
||||||
// between each attempt, where n is the running number of attempts. exits
|
// seconds between each attempt, where `n` is the running number of attempts. Exits
|
||||||
// as soon as the function returns with non-error, or as soon as the next
|
// as soon as the function returns with non-error, or as soon as `MaxRetries`
|
||||||
// wait interval exceeds `CutOverExponentialBackoffMaxInterval`.
|
// attempts are reached. Wait intervals between attempts obey a maximum of
|
||||||
|
// `ExponentialBackoffMaxInterval`.
|
||||||
func (this *Migrator) retryOperationWithExponentialBackoff(operation func() error, notFatalHint ...bool) (err error) {
|
func (this *Migrator) retryOperationWithExponentialBackoff(operation func() error, notFatalHint ...bool) (err error) {
|
||||||
var interval int64
|
var interval int64
|
||||||
maxRetries := int(this.migrationContext.MaxRetries())
|
maxRetries := int(this.migrationContext.MaxRetries())
|
||||||
|
Loading…
Reference in New Issue
Block a user