Place ideal peers in the log output. (#1563)

This commit is contained in:
Gav Wood
2016-07-07 15:25:58 +02:00
committed by GitHub
parent 43d931de12
commit 57c14eedfa
4 changed files with 16 additions and 7 deletions

View File

@@ -78,6 +78,11 @@ impl<Message> NetworkService<Message> where Message: Send + Sync + Clone + 'stat
&self.stats
}
/// Returns network configuration.
pub fn config(&self) -> &NetworkConfiguration {
&self.config
}
/// Returns external url if available.
pub fn external_url(&self) -> Option<String> {
let host = self.host.read().unwrap();