feat(clone_packages): ensure that all request have a timeout

This commit is contained in:
Laurent Peuch 2024-05-05 01:48:03 +02:00 committed by OniriCorpe
parent 8a71ebbd1e
commit 16dd17af59

View file

@ -42,6 +42,9 @@ def generate_mirror_list():
def request_handling_rate_limit(method, *args, **kwargs):
if "timeout" not in kwargs:
kwargs["timeout"] = 10
while True:
response = method(*args, **kwargs)