From 06bdb905e5045430b2df666ad566dec1f63603fc Mon Sep 17 00:00:00 2001 From: Andre Medeiros Date: Thu, 3 Nov 2022 14:14:44 -0400 Subject: [PATCH] adjust backoff schedules for reddit --- internal/reddit/client.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/internal/reddit/client.go b/internal/reddit/client.go index db72f95..3325927 100644 --- a/internal/reddit/client.go +++ b/internal/reddit/client.go @@ -47,9 +47,10 @@ type RateLimitingInfo struct { var ( backoffSchedule = []time.Duration{ - 4 * time.Second, - 8 * time.Second, - 16 * time.Second, + 200 * time.Millisecond, + 500 * time.Millisecond, + 1 * time.Second, + 2 * time.Second, } defaultErrorMap = map[int]error{