You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ethcore/sync/src/api.rs
+32-17Lines changed: 32 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,7 @@
17
17
use std::sync::Arc;
18
18
use std::collections::{HashMap,BTreeMap};
19
19
use std::io;
20
+
use std::ops::Range;
20
21
use std::time::Duration;
21
22
use bytes::Bytes;
22
23
use devp2p::NetworkService;
@@ -452,11 +453,18 @@ impl ChainNotify for EthSync {
452
453
}
453
454
454
455
fnstart(&self){
455
-
matchself.network.start().map_err(Into::into){
456
-
Err(ErrorKind::Io(ref e))if e.kind() == io::ErrorKind::AddrInUse => warn!("Network port {:?} is already in use, make sure that another instance of an Ethereum client is not running or change the port using the --port option.",self.network.config().listen_address.expect("Listen address is not set.")),
warn!("Network port {:?} is already in use, make sure that another instance of an Ethereum client is not running or change the port using the --port option.", listen_address.expect("Listen address is not set."))
warn!("Network port {:?} is already in use, make sure that another instance of an Ethereum client is not running or change the port using the --port option.",self.network.config().listen_address.expect("Listen address is not set."))
warn!("Network port {:?} is already in use, make sure that another instance of an Ethereum client is not running or change the port using the --port option.", listen_address.expect("Listen address is not set."))
833
+
},
834
+
err => warn!("Error starting network: {}", err),
835
+
}
836
+
},
823
837
_ => {},
824
838
}
825
839
@@ -836,8 +850,8 @@ impl ManageNetwork for LightSync {
0 commit comments