[Feature] option to disable upload

This commit is contained in:
Igor Katson 2024-08-28 18:02:25 +01:00
parent 9f798696ff
commit fc7ae3bbe5
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
6 changed files with 32 additions and 14 deletions

View file

@ -148,8 +148,8 @@ struct Handler {
}
impl PeerConnectionHandler for Handler {
fn get_have_bytes(&self) -> u64 {
0
fn should_send_bitfield(&self) -> bool {
false
}
fn serialize_bitfield_message_to_buf(&self, _buf: &mut Vec<u8>) -> anyhow::Result<usize> {