Skip to content
This repository has been archived by the owner on Oct 31, 2021. It is now read-only.

Commit

Permalink
Fix: ThrottlingAwareClient default retry to 5 s instead of 5 ns -_-
Browse files Browse the repository at this point in the history
  • Loading branch information
jendakol committed Apr 6, 2021
1 parent 05d7d71 commit 95f98a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/utils/http/throttling-aware-client.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
)
import "github.com/hashicorp/go-retryablehttp"

const defaultRetryDuration time.Duration = 5
const defaultRetryDuration = 5 * time.Second

//NewThrottlingAwareClient Wraps given client and handles retries on HTTP 429.
func NewThrottlingAwareClient(httpClient *http.Client, requestLogger func(format string, args ...interface{})) *http.Client {
Expand Down

0 comments on commit 95f98a2

Please sign in to comment.