X-Git-Url: https://git.kaliko.me/?a=blobdiff_plain;f=sima%2Flib%2Fhttp.py;fp=sima%2Flib%2Fhttp.py;h=f9a08bed869e961292d6911d03b53a5639f6b0d4;hb=0374809fd2dd8e22c24efc0ce08df9ceefcf01b5;hp=8c6dab1bde94a1d9cea5d7fd74eaa13a133deb9d;hpb=80162143f725cbe604f7241e4dfc4929833470e5;p=mpd-sima.git diff --git a/sima/lib/http.py b/sima/lib/http.py index 8c6dab1..f9a08be 100644 --- a/sima/lib/http.py +++ b/sima/lib/http.py @@ -302,10 +302,6 @@ class HttpClient: resp = self.controller.update_cached_response(prepreq, resp) elif resp.status_code != 200: raise WSHTTPError('{0.status_code}: {0.reason}'.format(resp)) - ratelimit = resp.headers.get('x-ratelimit-remaining', None) - if ratelimit and self.stats: - minrl = min(int(ratelimit), self.stats.get('minrl')) - self.stats.update(minrl=minrl) self.controller.cache_response(resp.request, resp) return resp