aboutsummaryrefslogtreecommitdiff
path: root/src/or/main.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2007-12-21 06:08:00 +0000
committerRoger Dingledine <arma@torproject.org>2007-12-21 06:08:00 +0000
commit9ebf86bb668ac7672cf09d55ec9b5756105f95ae (patch)
tree07873842db07079417cee511ce81cb13637c0db1 /src/or/main.c
parentf0e7c4f0da87901584b4b03e7b50157ce607b88e (diff)
downloadtor-9ebf86bb668ac7672cf09d55ec9b5756105f95ae.tar
tor-9ebf86bb668ac7672cf09d55ec9b5756105f95ae.tar.gz
new config option FetchDirInfoEarly for tup/ioerror and the tordnsel
svn:r12896
Diffstat (limited to 'src/or/main.c')
-rw-r--r--src/or/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/main.c b/src/or/main.c
index 745c7d1c5..96f8e6fca 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -954,7 +954,7 @@ run_scheduled_events(time_t now)
* (if we've passed our internal checks). */
if (time_to_fetch_directory < now) {
/* Only caches actually need to fetch directories now. */
- if (directory_fetches_dir_info_like_mirror(options) &&
+ if (directory_fetches_dir_info_early(options) &&
!authdir_mode_v1(options)) {
if (any_trusted_dir_is_v1_authority() &&
!should_delay_dir_fetches(options))
@@ -967,7 +967,7 @@ run_scheduled_events(time_t now)
}
/* Caches need to fetch running_routers; directory clients don't. */
- if (directory_fetches_dir_info_like_mirror(options) &&
+ if (directory_fetches_dir_info_early(options) &&
time_to_fetch_running_routers < now) {
if (!authdir_mode_v1(options) && !should_delay_dir_fetches(options)) {
directory_get_from_dirserver(DIR_PURPOSE_FETCH_RUNNING_LIST,