Browse Source

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

svn:r6232
Peter Palfrader 18 years ago
parent
commit
444e3b8eb2
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/or/routerlist.c

+ 3 - 0
src/or/routerlist.c

@@ -3466,6 +3466,9 @@ update_router_descriptor_client_downloads(time_t now)
              "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) {
     log_info(LD_DIR,
              "Not enough networkstatus documents to launch requests.");