Cleanup devp2p unused interface fn

This commit is contained in:
draganrakita
2020-12-17 12:57:34 +01:00
committed by rakita
parent a6bd3516e0
commit f723e288c3
6 changed files with 7 additions and 41 deletions

View File

@@ -35,7 +35,6 @@ use std::{
time::Duration,
};
use connection::PAYLOAD_SOFT_LIMIT;
use discovery::{Discovery, NodeEntry, TableUpdates, MAX_DATAGRAM_SIZE};
use io::*;
use ip_utils::{map_external_address, select_public_address};
@@ -226,10 +225,6 @@ impl<'s> NetworkContextTrait for NetworkContext<'s> {
.map(|node| self.reserved_peers.contains(&node))
.unwrap_or(false)
}
fn payload_soft_limit(&self) -> usize {
PAYLOAD_SOFT_LIMIT
}
}
/// Shared host information

View File

@@ -113,6 +113,8 @@ mod session;
pub use host::NetworkContext;
pub use service::NetworkService;
pub use connection::PAYLOAD_SOFT_LIMIT;
pub use io::TimerToken;
pub use node_table::{validate_node_url, NodeId};