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
{{ message }}
This repository was archived by the owner on Nov 6, 2020. It is now read-only.
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,ConnectionFilter};
@@ -451,11 +452,18 @@ impl ChainNotify for EthSync {
451
452
}
452
453
453
454
fnstart(&self){
454
-
matchself.network.start().map_err(Into::into){
455
-
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."))
832
+
},
833
+
err => warn!("Error starting network: {}", err),
834
+
}
835
+
},
822
836
_ => {},
823
837
}
824
838
@@ -837,8 +851,8 @@ impl ManageNetwork for LightSync {
0 commit comments