Wrap network under its own mod

This commit is contained in:
Santiago Carmuega 2021-11-24 05:51:14 -03:00
parent 0303ecdbfb
commit 99f42632fc
3 changed files with 2 additions and 5 deletions

View file

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

View file

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