mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: add missing builder fn for outbound dials (#4786)
This commit is contained in:
@ -1201,6 +1201,12 @@ impl PeersConfig {
|
||||
self
|
||||
}
|
||||
|
||||
/// Maximum allowed concurrent outbound dials.
|
||||
pub fn with_max_concurrent_dials(mut self, max_concurrent_outbound_dials: usize) -> Self {
|
||||
self.connection_info.max_concurrent_outbound_dials = max_concurrent_outbound_dials;
|
||||
self
|
||||
}
|
||||
|
||||
/// Nodes to always connect to.
|
||||
pub fn with_trusted_nodes(mut self, nodes: HashSet<NodeRecord>) -> Self {
|
||||
self.trusted_nodes = nodes;
|
||||
|
||||
Reference in New Issue
Block a user