Wrap network under its own mod
This commit is contained in:
parent
0303ecdbfb
commit
99f42632fc
3 changed files with 2 additions and 5 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
1
pallas/src/ouroboros/mod.rs
Normal file
1
pallas/src/ouroboros/mod.rs
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
pub mod network;
|
||||||
Loading…
Add table
Add a link
Reference in a new issue