From 15e7417fc5f863d01492f123388ed2b638dc09b1 Mon Sep 17 00:00:00 2001 From: Kurt Kotzur Date: Mon, 19 Mar 2018 12:29:49 -0700 Subject: [PATCH] update comment --- go/logic/migrator.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/go/logic/migrator.go b/go/logic/migrator.go index 0dcb3bb..673a98e 100644 --- a/go/logic/migrator.go +++ b/go/logic/migrator.go @@ -149,10 +149,11 @@ func (this *Migrator) retryOperation(operation func() error, notFatalHint ...boo return err } -// retryOperation attempts running given function, waiting 2^(n-1) 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 -// wait interval exceeds `CutOverExponentialBackoffMaxInterval`. +// `retryOperationWithExponentialBackoff` attempts running given function, waiting 2^(n-1) +// 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 `MaxRetries` +// attempts are reached. Wait intervals between attempts obey a maximum of +// `ExponentialBackoffMaxInterval`. func (this *Migrator) retryOperationWithExponentialBackoff(operation func() error, notFatalHint ...bool) (err error) { var interval int64 maxRetries := int(this.migrationContext.MaxRetries())