Ver código fonte

Remove a duplicate call to update_microdesc_downloads()

This call happens before we update our entry guards, so it needs to be
removed for the fix to #23862 to work.
George Kadianakis 7 anos atrás
pai
commit
dfd3ed5bdc
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      src/or/directory.c

+ 2 - 2
src/or/directory.c

@@ -2667,11 +2667,11 @@ handle_response_fetch_consensus(dir_connection_t *conn,
   /* If we launched other fetches for this consensus, cancel them. */
   /* If we launched other fetches for this consensus, cancel them. */
   connection_dir_close_consensus_fetches(conn, flavname);
   connection_dir_close_consensus_fetches(conn, flavname);
 
 
-  /* launches router downloads as needed */
+  /* update the list of routers and directory guards */
   routers_update_all_from_networkstatus(now, 3);
   routers_update_all_from_networkstatus(now, 3);
   update_microdescs_from_networkstatus(now);
   update_microdescs_from_networkstatus(now);
-  update_microdesc_downloads(now);
   directory_info_has_arrived(now, 0, 0);
   directory_info_has_arrived(now, 0, 0);
+
   if (authdir_mode_v3(get_options())) {
   if (authdir_mode_v3(get_options())) {
     sr_act_post_consensus(
     sr_act_post_consensus(
                      networkstatus_get_latest_consensus_by_flavor(FLAV_NS));
                      networkstatus_get_latest_consensus_by_flavor(FLAV_NS));