[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Remove an unneccessary FetchUselessDescriptors check in client_would_use_router



commit e061cf4d1d7e9d8533cde936f0904d4f7b877746
Author: teor <teor2345@xxxxxxxxx>
Date:   Wed Nov 30 11:43:04 2016 +1100

    Remove an unneccessary FetchUselessDescriptors check in client_would_use_router
---
 src/or/networkstatus.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/or/networkstatus.c b/src/or/networkstatus.c
index 10157c6..bfb3641 100644
--- a/src/or/networkstatus.c
+++ b/src/or/networkstatus.c
@@ -2407,9 +2407,9 @@ int
 client_would_use_router(const routerstatus_t *rs, time_t now,
                         const or_options_t *options)
 {
-  if (!rs->is_flagged_running && !options->FetchUselessDescriptors) {
+  if (!rs->is_flagged_running) {
     /* If we had this router descriptor, we wouldn't even bother using it.
-     * But, if we want to have a complete list, fetch it anyway. */
+     * (Fetching and storing depends on by we_want_to_fetch_flavor().) */
     return 0;
   }
   if (rs->published_on + options->TestingEstimatedDescriptorPropagationTime



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits