diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-12-11 19:12:45 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-12-11 19:12:45 +0000 |
commit | 29f5a65a166cd06879ef55b7b5a38ae88c40482f (patch) | |
tree | 6ce6bde4a2ca017cb3fa8af85cf6752062694a16 /src/or/networkstatus.c | |
parent | 4e69284e8926554acd01c3beab72e26609c89926 (diff) | |
download | tor-29f5a65a166cd06879ef55b7b5a38ae88c40482f.tar.gz tor-29f5a65a166cd06879ef55b7b5a38ae88c40482f.zip |
Change directory_get_from_dirserver to take a set of flags to be passed to pick_(trusted_)dirserver. This lets us make its interface smarter, and makes code that calls it a little more readable.
svn:r17592
Diffstat (limited to 'src/or/networkstatus.c')
-rw-r--r-- | src/or/networkstatus.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/or/networkstatus.c b/src/or/networkstatus.c index 8ed66f068f..aaf7d7c29d 100644 --- a/src/or/networkstatus.c +++ b/src/or/networkstatus.c @@ -1049,7 +1049,8 @@ update_v2_networkstatus_cache_downloads(time_t now) if (!connection_get_by_type_purpose(CONN_TYPE_DIR, DIR_PURPOSE_FETCH_NETWORKSTATUS)) directory_get_from_dirserver(DIR_PURPOSE_FETCH_NETWORKSTATUS, - ROUTER_PURPOSE_GENERAL, "all.z",1); + ROUTER_PURPOSE_GENERAL, "all.z", + PDS_RETRY_IF_NO_SERVERS); } } @@ -1092,7 +1093,8 @@ update_consensus_networkstatus_downloads(time_t now) log_info(LD_DIR, "Launching networkstatus consensus download."); directory_get_from_dirserver(DIR_PURPOSE_FETCH_CONSENSUS, - ROUTER_PURPOSE_GENERAL, NULL, 1); + ROUTER_PURPOSE_GENERAL, NULL, + PDS_RETRY_IF_NO_SERVERS); } /** Called when an attempt to download a consensus fails: note that the |