Dont spam haves

This commit is contained in:
Igor Katson 2024-05-03 16:59:49 +01:00
parent 44aa75f34b
commit 8a86d04631
3 changed files with 25 additions and 3 deletions

View file

@ -226,6 +226,10 @@ impl PeerConnectionHandler for Handler {
}
Ok(())
}
fn should_transmit_have(&self, _id: librqbit_core::lengths::ValidPieceIndex) -> bool {
false
}
}
#[cfg(test)]