diff --git a/bigtable/bigtable.go b/bigtable/bigtable.go index 6ca2096e7046..187d0a747d6b 100644 --- a/bigtable/bigtable.go +++ b/bigtable/bigtable.go @@ -114,17 +114,14 @@ var ( isIdempotentRetryCode = make(map[codes.Code]bool) retryOptions = []gax.CallOption{ gax.WithRetry(func() gax.Retryer { + backoff := gax.Backoff{ + Initial: 100 * time.Millisecond, + Max: 2 * time.Second, + Multiplier: 1.2, + } return &bigtableRetryer{ - Retryer: gax.OnCodes(idempotentRetryCodes, gax.Backoff{ - Initial: 100 * time.Millisecond, - Max: 2 * time.Second, - Multiplier: 1.2, - }), - Backoff: gax.Backoff{ - Initial: 100 * time.Millisecond, - Max: 2 * time.Second, - Multiplier: 1.2, - }, + Retryer: gax.OnCodes(idempotentRetryCodes, backoff), + Backoff: backoff, } }), }