Will use current rate limit method for forseable future, closes #12
This commit is contained in:
parent
94f0aacc0a
commit
e1a88003e6
1 changed files with 0 additions and 3 deletions
|
@ -113,9 +113,6 @@ func (s *Session) request(method, urlStr, contentType string, b []byte) (respons
|
||||||
// TODO check for 401 response, invalidate token if we get one.
|
// TODO check for 401 response, invalidate token if we get one.
|
||||||
|
|
||||||
case 429: // TOO MANY REQUESTS - Rate limiting
|
case 429: // TOO MANY REQUESTS - Rate limiting
|
||||||
// This will be changed to a more robust method later.
|
|
||||||
// which may be hugely different as this method could cause
|
|
||||||
// unending recursion
|
|
||||||
rl := RateLimit{}
|
rl := RateLimit{}
|
||||||
err = json.Unmarshal(response, &rl)
|
err = json.Unmarshal(response, &rl)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue