From 64a299c47961afc2dd9ded9a1d066db00025d0b6 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Mon, 18 Oct 2021 17:41:14 -0700 Subject: [PATCH] Remove time counting of http get. --- hnarchive.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/hnarchive.py b/hnarchive.py index c5c0513..675d4a6 100644 --- a/hnarchive.py +++ b/hnarchive.py @@ -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):