Upgrade deps
This commit is contained in:
parent
15ae48e5af
commit
ae847ce99c
12 changed files with 493 additions and 2173 deletions
|
|
@ -33,20 +33,20 @@ anyhow = "1"
|
|||
|
||||
regex = "1"
|
||||
reqwest = {version="0.11", default-features=false}
|
||||
urlencoding = "1"
|
||||
urlencoding = "2"
|
||||
byteorder = "1"
|
||||
bincode = "1"
|
||||
bitvec = "0.22"
|
||||
parking_lot = "0.11"
|
||||
bitvec = "1"
|
||||
parking_lot = "0.12"
|
||||
log = "0.4"
|
||||
size_format = "1"
|
||||
rand = "0.8"
|
||||
|
||||
openssl = {version="0.10", optional=true}
|
||||
crypto-hash = {version="0.3", optional=true}
|
||||
sha1 = {version = "0.6", optional=true}
|
||||
sha1 = {version = "0.10", optional=true}
|
||||
|
||||
uuid = {version = "0.8", features = ["v4"]}
|
||||
uuid = {version = "1.2", features = ["v4"]}
|
||||
futures = "0.3"
|
||||
url = "2"
|
||||
hex = "0.4"
|
||||
|
|
|
|||
|
|
@ -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