Cleanup devp2p unused interface fn
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user