File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -122,13 +122,13 @@ impl<'a> Into<NetworkConfig> for &'a Network {
122122 fn into ( self ) -> NetworkConfig {
123123 let bootstrap_addresses =
124124 self . bootstrap_addresses . iter ( ) . map ( |s| SocketAddr :: from_str ( s) . unwrap ( ) ) . collect :: < Vec < _ > > ( ) ;
125- NetworkConfig {
126- port : self . port ,
127- bootstrap_addresses,
128- min_peers : self . min_peers ,
129- max_peers : self . max_peers ,
130- address : self . address . to_string ( ) ,
131- }
125+ NetworkConfig {
126+ port : self . port ,
127+ bootstrap_addresses,
128+ min_peers : self . min_peers ,
129+ max_peers : self . max_peers ,
130+ address : self . address . to_string ( ) ,
131+ }
132132 }
133133}
134134
Original file line number Diff line number Diff line change 9797
9898pub fn network_start ( cfg : & NetworkConfig ) -> Result < Arc < NetworkService > , String > {
9999 info ! ( "Handshake Listening on {}:{}" , cfg. address, cfg. port) ;
100-
100+
101101 let addr = cfg. address . parse ( ) . map_err ( |_| format ! ( "Invalid NETWORK listen host given: {}" , cfg. address) ) ?;
102102 let sockaddress = SocketAddr :: new ( addr, cfg. port ) ;
103103 let service = NetworkService :: start ( sockaddress, cfg. min_peers , cfg. max_peers )
You can’t perform that action at this time.
0 commit comments