aboutsummaryrefslogtreecommitdiff
path: root/src/or/directory.h
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2016-04-13 03:05:54 -0400
committerRoger Dingledine <arma@torproject.org>2016-05-09 14:41:32 -0400
commite230e80ab3021caf8153d2ba09bab5cb185366dc (patch)
treecee4bf719a562ed08c28e3f53cfbfea5414adea1 /src/or/directory.h
parenta7665df2f8607403e5e14bf1af7426cedfea01dc (diff)
downloadtor-e230e80ab3021caf8153d2ba09bab5cb185366dc.tar.gz
tor-e230e80ab3021caf8153d2ba09bab5cb185366dc.zip
get rid of the scattered checks to cancel a consensus fetch
We'll back off from the request in connection_ap_handshake_attach_circuit, or cancel it in connection_dir_close_consensus_fetches, and those are the only places we need to check.
Diffstat (limited to 'src/or/directory.h')
-rw-r--r--src/or/directory.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/or/directory.h b/src/or/directory.h
index 9a17474a6b..3254e073d2 100644
--- a/src/or/directory.h
+++ b/src/or/directory.h
@@ -79,7 +79,6 @@ void directory_initiate_command(const tor_addr_t *or_addr, uint16_t or_port,
const char *payload, size_t payload_len,
time_t if_modified_since);
int connection_dir_avoid_extra_connection_for_purpose(unsigned int purpose);
-int connection_dir_close_consensus_conn_if_extra(dir_connection_t *conn);
#define DSR_HEX (1<<0)
#define DSR_BASE64 (1<<1)
@@ -146,7 +145,6 @@ STATIC int directory_handle_command_get(dir_connection_t *conn,
const char *headers,
const char *req_body,
size_t req_body_len);
-STATIC int connection_dir_would_close_consensus_conn_helper(void);
STATIC int download_status_schedule_get_delay(download_status_t *dls,
const smartlist_t *schedule,
time_t now);