Rename
This commit is contained in:
parent
06136cc170
commit
205ce3265a
5 changed files with 4 additions and 4 deletions
|
|
@ -3,7 +3,7 @@ use log::{debug, info};
|
|||
use crate::{
|
||||
buffers::ByteString,
|
||||
lengths::{ChunkInfo, Lengths, ValidPieceIndex},
|
||||
peer_comms::Piece,
|
||||
peer_binary_protocol::Piece,
|
||||
type_aliases::BF,
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
use crate::{buffers::ByteString, constants::CHUNK_SIZE, peer_comms::Piece};
|
||||
use crate::{buffers::ByteString, constants::CHUNK_SIZE, peer_binary_protocol::Piece};
|
||||
|
||||
const fn is_power_of_two(x: u64) -> bool {
|
||||
(x != 0) && ((x & (x - 1)) == 0)
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ pub mod chunk_tracker;
|
|||
pub mod clone_to_owned;
|
||||
pub mod constants;
|
||||
pub mod lengths;
|
||||
pub mod peer_comms;
|
||||
pub mod peer_binary_protocol;
|
||||
pub mod peer_id;
|
||||
pub mod serde_bencode;
|
||||
pub mod torrent_manager;
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ use crate::{
|
|||
chunk_tracker::{ChunkMarkingResult, ChunkTracker},
|
||||
clone_to_owned::CloneToOwned,
|
||||
lengths::{ChunkInfo, Lengths, ValidPieceIndex},
|
||||
peer_comms::{
|
||||
peer_binary_protocol::{
|
||||
Handshake, Message, MessageBorrowed, MessageDeserializeError, MessageOwned, Piece, Request,
|
||||
},
|
||||
peer_id::try_decode_peer_id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue