Skip to content

Commit 5709869

Browse files
committed
docs(auth): correct jitter comment to reflect additive range
1 parent 9e58abd commit 5709869

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

hotdata/_auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
_MAX_ATTEMPTS = 3 # one initial attempt + up to two retries
6161
_BACKOFF_BASE = 0.1 # seconds -- first retry waits ~this, doubling thereafter
6262
_BACKOFF_MAX = 2.0 # cap on a single backoff so a flapping host can't stall us
63-
_BACKOFF_JITTER = 0.5 # +/- fraction of jitter added to spread retries out
63+
_BACKOFF_JITTER = 0.5 # additive jitter fraction (delay in [base, 1.5*base]) to spread retries out
6464

6565
# Env var that disables exchange entirely. Used as a hard escape hatch during
6666
# the rollout window and for local/dev setups. Only affirmative values opt out

0 commit comments

Comments
 (0)