mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-15 00:17:42 +00:00
adjust backoff schedules for reddit
This commit is contained in:
parent
5adc5ec4e2
commit
06bdb905e5
1 changed files with 4 additions and 3 deletions
|
@ -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{
|
||||
|
|
Loading…
Reference in a new issue