Skip to content

Commit 13f2d83

Browse files
committed
rename
1 parent eb10ac4 commit 13f2d83

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ var (
1919
)
2020

2121
// Custom backoff function
22-
func customBackoff(min, max time.Duration, attemptNum int, resp *http.Response) time.Duration {
22+
func thousandEyesBackoff(min, max time.Duration, attemptNum int, resp *http.Response) time.Duration {
2323
if resp == nil {
2424
return 0
2525
}

client/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ type Service struct {
3636

3737
func NewRetryAPIClient() *http.Client {
3838
var retryClient = retryablehttp.NewClient()
39-
retryClient.Backoff = customBackoff
39+
retryClient.Backoff = thousandEyesBackoff
4040
return retryClient.StandardClient()
4141
}
4242

0 commit comments

Comments
 (0)