1
0
Fork 0

Remove time counting of http get.

This commit is contained in:
voussoir 2021-10-18 17:41:14 -07:00
parent 455f95d904
commit 64a299c479
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -74,8 +74,6 @@ def int_or_none(x):
# API ##############################################################################################
def get(url, retries=1):
start_time = time.time()
bo = backoff.Quadratic(a=0.2, b=0, c=1, max=10)
while retries > 0:
log.loud(url)
@ -95,8 +93,6 @@ def get(url, retries=1):
log.loud('Request failed, %d tries remain.', retries)
time.sleep(bo.next())
end_time = time.time()
log.loud('%s took %s.', url, end_time - start_time)
return response
def get_item(id):