fichier: implement custom pacer to deal with the new rate limiting

This commit is contained in:
buengese 2020-04-24 03:15:52 +02:00 committed by buengese
parent 8bf6ab2c52
commit 7f776c64f0
2 changed files with 8 additions and 6 deletions

View file

@ -17,6 +17,7 @@ import (
// retryErrorCodes is a slice of error codes that we will retry
var retryErrorCodes = []int{
429, // Too Many Requests.
403, // Forbidden (may happen when request limit is exceeded)
500, // Internal Server Error
502, // Bad Gateway
503, // Service Unavailable