Upgrade deps
This commit is contained in:
parent
15ae48e5af
commit
ae847ce99c
12 changed files with 493 additions and 2173 deletions
|
|
@ -44,7 +44,7 @@ fn compute_chunk_status(lengths: &Lengths, needed_pieces: &BF) -> BF {
|
|||
chunk_bf
|
||||
.get_mut(offset..offset + chunks_per_piece)
|
||||
.unwrap()
|
||||
.set_all(true);
|
||||
.fill(true);
|
||||
}
|
||||
chunk_bf
|
||||
}
|
||||
|
|
@ -120,7 +120,7 @@ impl ChunkTracker {
|
|||
self.chunk_status
|
||||
.get_mut(self.lengths.chunk_range(index))
|
||||
.map(|s| {
|
||||
s.set_all(false);
|
||||
s.fill(false);
|
||||
true
|
||||
})
|
||||
.unwrap_or_default()
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
use std::net::SocketAddr;
|
||||
|
||||
pub type BF = bitvec::vec::BitVec<bitvec::order::Msb0, u8>;
|
||||
pub type BF = bitvec::vec::BitVec<u8, bitvec::order::Msb0>;
|
||||
|
||||
pub type PeerHandle = SocketAddr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue