diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-01-25 15:51:13 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-01-25 15:51:13 -0500 |
commit | e0049ef022b8bf9b808a9074820bb2a33f92ac1b (patch) | |
tree | 762121646ca7ab4dc3d88848c3d32fd958f351f7 /src/or/or.h | |
parent | 7a74b3663fdaa40fc84e48990d15953a8f46a2bf (diff) | |
download | tor-e0049ef022b8bf9b808a9074820bb2a33f92ac1b.tar.gz tor-e0049ef022b8bf9b808a9074820bb2a33f92ac1b.zip |
Remove the old ("deterministic") download schedule.
We haven't meant to use it since we introduced the random
exponential schedule.
Closes ticket 23814.
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/or/or.h b/src/or/or.h index c81e29c95c..f93050dfea 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -2069,15 +2069,6 @@ typedef enum { #define download_schedule_increment_bitfield_t \ ENUM_BF(download_schedule_increment_t) -/** Enumeration: do we want to use the random exponential backoff - * mechanism? */ -typedef enum { - DL_SCHED_DETERMINISTIC = 0, - DL_SCHED_RANDOM_EXPONENTIAL = 1, -} download_schedule_backoff_t; -#define download_schedule_backoff_bitfield_t \ - ENUM_BF(download_schedule_backoff_t) - /** Information about our plans for retrying downloads for a downloadable * directory object. * Each type of downloadable directory object has a corresponding retry @@ -2124,11 +2115,6 @@ typedef struct download_status_t { download_schedule_increment_bitfield_t increment_on : 1; /**< does this * schedule increment on each attempt, * or after each failure? */ - download_schedule_backoff_bitfield_t backoff : 1; /**< do we use the - * deterministic schedule, or random - * exponential backoffs? - * Increment on failure schedules - * always use exponential backoff. */ uint8_t last_backoff_position; /**< number of attempts/failures, depending * on increment_on, when we last recalculated * the delay. Only updated if backoff |