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

This commit is contained in:
skoupidi
2024-09-18 16:55:08 +03:00
parent cf8d758bb8
commit c73ee72a41

View File

@@ -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)
}