commit d7acfa7fc24a1d43426d01fc36284564d5b9c9b2 Author: juga0 <j...@riseup.net> Date: Wed Feb 19 16:46:52 2020 +0000
fix: destination: Replace constant name to make it consistent with others and shorter. Part of #33033. --- sbws/globals.py | 2 +- sbws/lib/destination.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sbws/globals.py b/sbws/globals.py index 3eb1aa8..a71fbc6 100644 --- a/sbws/globals.py +++ b/sbws/globals.py @@ -140,7 +140,7 @@ NUM_DESTINATION_ATTEMPTS_STORED = 10 DELTA_SECONDS_RETRY_DESTINATION = 60 * 5 # No matter what, do not increase the wait time between destination reties # past this value. -MAX_SECONDS_BETWEEN_DESTINATION_RETRIES = 60 * 60 * 3 +MAX_SECONDS_RETRY_DESTINATION = 60 * 60 * 3 # Number of consecutive times a destination can fail before considering it # not functional. MAX_NUM_DESTINATION_FAILURES = 3 diff --git a/sbws/lib/destination.py b/sbws/lib/destination.py index a53b8ca..5330dbf 100644 --- a/sbws/lib/destination.py +++ b/sbws/lib/destination.py @@ -11,7 +11,7 @@ import sbws.util.stem as stem_utils from ..globals import ( MAX_NUM_DESTINATION_FAILURES, DELTA_SECONDS_RETRY_DESTINATION, - MAX_SECONDS_BETWEEN_DESTINATION_RETRIES, + MAX_SECONDS_RETRY_DESTINATION, NUM_DESTINATION_ATTEMPTS_STORED, FACTOR_INCREMENT_DESTINATION_RETRY ) @@ -144,7 +144,7 @@ class Destination: def __init__(self, url, max_dl, verify, max_num_failures=MAX_NUM_DESTINATION_FAILURES, delta_seconds_retry=DELTA_SECONDS_RETRY_DESTINATION, - max_seconds_between_retries=MAX_SECONDS_BETWEEN_DESTINATION_RETRIES, + max_seconds_between_retries=MAX_SECONDS_RETRY_DESTINATION, num_attempts_stored=NUM_DESTINATION_ATTEMPTS_STORED, factor_increment_retry=FACTOR_INCREMENT_DESTINATION_RETRY): """Initalizes the Web server from which the data is downloaded. _______________________________________________ tor-commits mailing list tor-commits@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits