Kaynağa Gözat

Make directory caches a little less chatty when logging

svn:r5662
Nick Mathewson 19 yıl önce
ebeveyn
işleme
9ef54a3d0c
1 değiştirilmiş dosya ile 2 ekleme ve 0 silme
  1. 2 0
      src/or/routerlist.c

+ 2 - 0
src/or/routerlist.c

@@ -3448,6 +3448,8 @@ update_router_descriptor_cache_downloads(time_t now)
       continue;
     }
     smartlist_t *dl = download_from[i];
+    if (! smartlist_len(dl))
+      continue;
     info(LD_DIR, "Requesting %d descriptors from authority \"%s\"",
          smartlist_len(dl), ds->nickname);
     for (j=0; j < smartlist_len(dl); j += MAX_DL_PER_REQUEST) {