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

chore: fix misleading code comment

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

+ 3 - 2
src/net/hosts/store.rs

@@ -282,8 +282,9 @@ impl Hosts {
         self.anchorlist_store_or_update(&[(addr.clone(), last_seen)]).await;
     }
 
-    /// Remove an entry from the hostlist. Called when we cannot establish a connection to a host or
-    /// when a pre-existing connection disconnects.
+    /// Remove an entry from the hostlist. Called when a handshake fails in
+    /// session::register_channel(), or after we have failed to connect to them
+    /// outbound_connect_limit times in quarantine()
     pub async fn remove_host(&self, addr: &Url) {
         debug!(target: "store::remove_host", "Removing host {}", addr);
         self.mark_migrating(addr).await;