GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

Commit d7acfa7f authored by juga  's avatar juga
Browse files

fix: destination: Replace constant name

to make it consistent with others and shorter.

Part of #33033.
parent 25bb4476
......@@ -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
......
......@@ -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.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment