1
0
Fork 0

Remove time counting of http get.

master
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
1 changed files with 0 additions and 4 deletions

View File

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