From 205ce3265ab0cbf0f9b03d860b618540dea75c3b Mon Sep 17 00:00:00 2001 From: Igor Katson Date: Mon, 28 Jun 2021 11:29:20 +0100 Subject: [PATCH] Rename --- crates/librqbit/src/chunk_tracker.rs | 2 +- crates/librqbit/src/lengths.rs | 2 +- crates/librqbit/src/lib.rs | 2 +- crates/librqbit/src/{peer_comms.rs => peer_binary_protocol.rs} | 0 crates/librqbit/src/torrent_manager.rs | 2 +- 5 files changed, 4 insertions(+), 4 deletions(-) rename crates/librqbit/src/{peer_comms.rs => peer_binary_protocol.rs} (100%) diff --git a/crates/librqbit/src/chunk_tracker.rs b/crates/librqbit/src/chunk_tracker.rs index d1ab12a..69462fe 100644 --- a/crates/librqbit/src/chunk_tracker.rs +++ b/crates/librqbit/src/chunk_tracker.rs @@ -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, }; diff --git a/crates/librqbit/src/lengths.rs b/crates/librqbit/src/lengths.rs index b3967c1..c2362eb 100644 --- a/crates/librqbit/src/lengths.rs +++ b/crates/librqbit/src/lengths.rs @@ -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) diff --git a/crates/librqbit/src/lib.rs b/crates/librqbit/src/lib.rs index 1267243..762dbbd 100644 --- a/crates/librqbit/src/lib.rs +++ b/crates/librqbit/src/lib.rs @@ -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; diff --git a/crates/librqbit/src/peer_comms.rs b/crates/librqbit/src/peer_binary_protocol.rs similarity index 100% rename from crates/librqbit/src/peer_comms.rs rename to crates/librqbit/src/peer_binary_protocol.rs diff --git a/crates/librqbit/src/torrent_manager.rs b/crates/librqbit/src/torrent_manager.rs index 872b8ce..18fcd32 100644 --- a/crates/librqbit/src/torrent_manager.rs +++ b/crates/librqbit/src/torrent_manager.rs @@ -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,