pub(super) fn new(bind_address: SocketAddr) -> Self {
        Config {
            bind_address: bind_address.to_string(),
            public_address: bind_address.to_string(),
            known_addresses: vec![bind_address.to_string()],
            gossip_interval: TimeDiff::from_str(DEFAULT_TEST_GOSSIP_INTERVAL).unwrap(),
            ..Default::default()
        }
    }
/// Construct a configuration suitable for testing with no known address that binds to a
/// specific address.
Construct a configuration suitable for testing with no known address that binds to a
specific address.
Construct a configuration suitable for testing with no known address that binds to a specific address .
pub(super) fn new(bind_address: SocketAddr) -> Self {
        Config {
            bind_address: bind_address.to_string(),
            public_address: bind_address.to_string(),
            known_addresses: vec![bind_address.to_string()],
            gossip_interval: TimeDiff::from_str(DEFAULT_TEST_GOSSIP_INTERVAL).unwrap(),
            ..Default::default()
        }
    }
pub ( super ) fn new ( bind_address : SocketAddr ) -> Self { Config { bind_address : bind_address . to_string ( ) , public_address : bind_address . to_string ( ) , known_addresses : vec ! [ bind_address to_string ( ) ] , gossip_interval : TimeDiff :: from_str ( DEFAULT_TEST_GOSSIP_INTERVAL ) . unwrap ( ) , .. Default :: default ( ) } }
Construct a configuration suitable for testing with no known address that binds to a
specific address.
Construct a configuration suitable for testing with no known address that binds to a specific address .
bind_address
SocketAddr
bind_address
SocketAddr