Fix build on rust 1.73
This commit is contained in:
parent
9481ffcb32
commit
215bccb89c
3 changed files with 3 additions and 3 deletions
|
|
@ -53,7 +53,7 @@ pub struct PeerConnectionOptions {
|
|||
pub keep_alive_interval: Option<Duration>,
|
||||
}
|
||||
|
||||
pub struct PeerConnection<H> {
|
||||
pub(crate) struct PeerConnection<H> {
|
||||
handler: H,
|
||||
addr: SocketAddr,
|
||||
info_hash: Id20,
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ use crate::{
|
|||
spawn_utils::BlockingSpawner,
|
||||
};
|
||||
|
||||
pub async fn read_metainfo_from_peer(
|
||||
pub(crate) async fn read_metainfo_from_peer(
|
||||
addr: SocketAddr,
|
||||
peer_id: Id20,
|
||||
info_hash: Id20,
|
||||
|
|
|
|||
|
|
@ -452,7 +452,7 @@ impl ManagedTorrentBuilder {
|
|||
self
|
||||
}
|
||||
|
||||
pub fn spawner(&mut self, spawner: BlockingSpawner) -> &mut Self {
|
||||
pub(crate) fn spawner(&mut self, spawner: BlockingSpawner) -> &mut Self {
|
||||
self.spawner = Some(spawner);
|
||||
self
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue