Skip to content

Commit

Permalink
limit request rate to 0.1/s
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberPunkMetalHead authored Sep 3, 2021
1 parent 19c372f commit 33b06d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def add_updated_all_coins_to_queue(queue):
queue += [all_coins_updated]


def make_threads_to_request_all_coins(queue, interval=0.05, max_amount_of_threads=20, max_queue_length=20):
def make_threads_to_request_all_coins(queue, interval=0.1, max_amount_of_threads=20, max_queue_length=20):
"""
This method creates threads for new requests to get all coins.
A new thread is created every interval.
Expand Down

0 comments on commit 33b06d8

Please sign in to comment.