summaryrefslogtreecommitdiff
path: root/src/or/directory.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-01-25 16:05:20 -0500
committerNick Mathewson <nickm@torproject.org>2018-01-25 16:05:20 -0500
commit5b55e15707fd49079b9c127b339976c4f446e131 (patch)
tree457c1a287f9d6df73da65d1191ac4f8b6b48aeb3 /src/or/directory.h
parentcd4fd9887b335e83980b8d41ef223cfb651fdc2a (diff)
downloadtor-5b55e15707fd49079b9c127b339976c4f446e131.tar.gz
tor-5b55e15707fd49079b9c127b339976c4f446e131.zip
Remove all the old max_delay logic.
We had tests for it, but it was always INT_MAX.
Diffstat (limited to 'src/or/directory.h')
-rw-r--r--src/or/directory.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/or/directory.h b/src/or/directory.h
index 6008d3a88a..e223d51ae2 100644
--- a/src/or/directory.h
+++ b/src/or/directory.h
@@ -254,7 +254,7 @@ MOCK_DECL(STATIC int, directory_handle_command_post,(dir_connection_t *conn,
const char *body,
size_t body_len));
STATIC int download_status_schedule_get_delay(download_status_t *dls,
- int min_delay, int max_delay,
+ int min_delay,
time_t now);
STATIC int handle_post_hs_descriptor(const char *url, const char *body);
@@ -265,13 +265,11 @@ STATIC int should_use_directory_guards(const or_options_t *options);
STATIC compression_level_t choose_compression_level(ssize_t n_bytes);
STATIC const smartlist_t *find_dl_schedule(const download_status_t *dls,
const or_options_t *options);
-STATIC void find_dl_min_and_max_delay(download_status_t *dls,
- const or_options_t *options,
- int *min, int *max);
+STATIC int find_dl_min_delay(download_status_t *dls,
+ const or_options_t *options);
STATIC int next_random_exponential_delay(int delay,
- int base_delay,
- int max_delay);
+ int base_delay);
STATIC void next_random_exponential_delay_range(int *low_bound_out,
int *high_bound_out,