From 95f98a23223bd26f9eca3cdbef47280462d672cb Mon Sep 17 00:00:00 2001 From: Jan Kolena Date: Tue, 6 Apr 2021 15:30:32 +0200 Subject: [PATCH] Fix: ThrottlingAwareClient default retry to 5 s instead of 5 ns -_- --- internal/utils/http/throttling-aware-client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/utils/http/throttling-aware-client.go b/internal/utils/http/throttling-aware-client.go index 1e6811f..b8e05d0 100644 --- a/internal/utils/http/throttling-aware-client.go +++ b/internal/utils/http/throttling-aware-client.go @@ -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 {