Просмотр исходного кода

net: Temporarily disable peer quarantine

parazyd 2 лет назад
Родитель
Сommit
a827db405f
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      src/net/hosts.rs

+ 3 - 0
src/net/hosts.rs

@@ -196,6 +196,8 @@ impl Hosts {
 
 
     /// Quarantine a peer. If they've been quarantined for 50 times, forget them.
     /// Quarantine a peer. If they've been quarantined for 50 times, forget them.
     pub async fn quarantine(&self, url: &Url) {
     pub async fn quarantine(&self, url: &Url) {
+        debug!(target: "net::hosts::quarantine()", "Attempted to quarantine {}", url);
+        /*
         debug!(target: "net::hosts::remove()", "Quarantining peer {}", url);
         debug!(target: "net::hosts::remove()", "Quarantining peer {}", url);
         // Remove from main hosts set
         // Remove from main hosts set
         self.addrs.write().await.remove(url);
         self.addrs.write().await.remove(url);
@@ -212,6 +214,7 @@ impl Hosts {
             debug!(target: "net::hosts::remove()", "Added peer {} to quarantine", url);
             debug!(target: "net::hosts::remove()", "Added peer {} to quarantine", url);
             q.insert(url.clone(), 0);
             q.insert(url.clone(), 0);
         }
         }
+        */
     }
     }
 
 
     /// Check if a given peer should be rejected
     /// Check if a given peer should be rejected