Explorar el Código

net: Temporarily disable peer quarantine

parazyd hace 2 años
padre
commit
a827db405f
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  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