Box<[u8]> instead of Vec<u8> for ByteBufOwned
This commit is contained in:
parent
d9ec702f59
commit
deee41cd93
23 changed files with 106 additions and 124 deletions
|
|
@ -198,7 +198,7 @@ impl LivePeerState {
|
|||
LivePeerState {
|
||||
peer_id,
|
||||
peer_interested: false,
|
||||
bitfield: BF::new(),
|
||||
bitfield: BF::default(),
|
||||
inflight_requests: Default::default(),
|
||||
tx,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue