From 27496fb26d4ed8858d3c72fabb441f5fb70d3d73 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Sat, 8 Jun 2024 12:45:42 +0100 Subject: [PATCH] mailru: attempt to fix throttling by decreasing min sleep to 100ms Before this change we waited a minimum of 10ms between API calls for mailru. The tests no longer pass at this rate, so this increases the time to 100ms. See #7768 --- backend/mailru/mailru.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/mailru/mailru.go b/backend/mailru/mailru.go index b1cb6e775..d92a5290c 100644 --- a/backend/mailru/mailru.go +++ b/backend/mailru/mailru.go @@ -46,8 +46,8 @@ import ( // Global constants const ( - minSleepPacer = 10 * time.Millisecond - maxSleepPacer = 2 * time.Second + minSleepPacer = 100 * time.Millisecond + maxSleepPacer = 5 * time.Second decayConstPacer = 2 // bigger for slower decay, exponential metaExpirySec = 20 * 60 // meta server expiration time serverExpirySec = 3 * 60 // download server expiration time