Note a magic 2 that probably should be replaced now that we have more dirservers

svn:r6232
This commit is contained in:
Peter Palfrader 2006-03-23 20:21:54 +00:00
parent 5b87b0bf55
commit 444e3b8eb2

View File

@ -3466,6 +3466,9 @@ update_router_descriptor_client_downloads(time_t now)
"Called router_descriptor_client_downloads() on a mirror?"); "Called router_descriptor_client_downloads() on a mirror?");
} }
/* XXX here's another magic 2 that probably should be replaced
* by <= smartlist_len(trusted_dir_servers)/2
* or by a function returning same. -- weasel */
if (networkstatus_list && smartlist_len(networkstatus_list) < 2) { if (networkstatus_list && smartlist_len(networkstatus_list) < 2) {
log_info(LD_DIR, log_info(LD_DIR,
"Not enough networkstatus documents to launch requests."); "Not enough networkstatus documents to launch requests.");