Skip to content

Commit

Permalink
refactor(bigtable): Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
bhshkh committed Apr 1, 2024
1 parent cbc59f4 commit 5199942
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions bigtable/bigtable.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
}),
}
Expand Down

0 comments on commit 5199942

Please sign in to comment.