Explorar o código

src/net/session/seedsync_session.rs: mask unused functions

skoupidi hai 1 ano
pai
achega
c73ee72a41
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      src/net/session/seedsync_session.rs

+ 3 - 3
src/net/session/seedsync_session.rs

@@ -129,9 +129,9 @@ impl SeedSyncSession {
     }
 
     /// Returns true if every seed attempt per slot has failed.
-    async fn failed(&self) -> bool {
+    async fn _failed(&self) -> bool {
         let slots = &*self.slots.lock().await;
-        slots.iter().all(|s| s.failed())
+        slots.iter().all(|s| s._failed())
     }
 }
 
@@ -277,7 +277,7 @@ impl Slot {
         self.reset();
     }
 
-    fn failed(&self) -> bool {
+    fn _failed(&self) -> bool {
         self.failed.load(SeqCst)
     }