Wrap network under its own mod

This commit is contained in:
Santiago Carmuega 2021-11-24 05:51:14 -03:00
parent 6996027741
commit 91372b99ac
3 changed files with 2 additions and 5 deletions

View file

@ -8,7 +8,6 @@ use std::{
time::{Duration, Instant},
};
use log::{debug, error, warn};
pub trait Bearer: Read + Write + Send + Sync + Sized {
@ -163,10 +162,7 @@ impl Multiplexer {
}
pub fn use_channel(&mut self, protocol_id: u16) -> ChannelProtocolIO {
self
.io_handles
.remove(&protocol_id)
.unwrap()
self.io_handles.remove(&protocol_id).unwrap()
}
pub fn join(self) {

View file

@ -0,0 +1 @@
pub mod network;