[tor-commits] [gettor/master] Fix twitter responder for links limit

hiro at torproject.org hiro at torproject.org
Tue Oct 15 18:04:14 UTC 2019


commit 729a4ad233c2ae7a1bf8a2396e262d3f3422e645
Author: hiro <hiro at torproject.org>
Date:   Tue Oct 15 20:04:09 2019 +0200

    Fix twitter responder for links limit
---
 gettor/parse/twitter.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gettor/parse/twitter.py b/gettor/parse/twitter.py
index 0c8a0fb..1c259d5 100644
--- a/gettor/parse/twitter.py
+++ b/gettor/parse/twitter.py
@@ -120,6 +120,10 @@ class TwitterParser(object):
                 id=hid.hexdigest(), service=request['service']
             )
 
+            num_requests += yield conn.get_num_requests(
+                id=request['id'], service=request['service']
+            )
+
             if num_requests[0][0] < twitter_requests_limit:
                 conn.new_request(
                     id=str(request['id']),



More information about the tor-commits mailing list