瀏覽代碼

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

svn:r6232
Peter Palfrader 19 年之前
父節點
當前提交
444e3b8eb2
共有 1 個文件被更改,包括 3 次插入0 次删除
  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.");