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 (
|
var (
|
||||||
backoffSchedule = []time.Duration{
|
backoffSchedule = []time.Duration{
|
||||||
4 * time.Second,
|
200 * time.Millisecond,
|
||||||
8 * time.Second,
|
500 * time.Millisecond,
|
||||||
16 * time.Second,
|
1 * time.Second,
|
||||||
|
2 * time.Second,
|
||||||
}
|
}
|
||||||
|
|
||||||
defaultErrorMap = map[int]error{
|
defaultErrorMap = map[int]error{
|
||||||
|
|
Loading…
Reference in a new issue