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
This commit is contained in:
Nick Craig-Wood 2024-06-08 12:45:42 +01:00
parent 39f8d039fe
commit 27496fb26d

View File

@ -46,8 +46,8 @@ import (
// Global constants // Global constants
const ( const (
minSleepPacer = 10 * time.Millisecond minSleepPacer = 100 * time.Millisecond
maxSleepPacer = 2 * time.Second maxSleepPacer = 5 * time.Second
decayConstPacer = 2 // bigger for slower decay, exponential decayConstPacer = 2 // bigger for slower decay, exponential
metaExpirySec = 20 * 60 // meta server expiration time metaExpirySec = 20 * 60 // meta server expiration time
serverExpirySec = 3 * 60 // download server expiration time serverExpirySec = 3 * 60 // download server expiration time