Remove println (#1575)

This commit is contained in:
hashmap 2018-09-22 21:22:02 +02:00 committed by GitHub
parent 274df3b8bb
commit 82b785282c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -163,19 +163,16 @@ impl ServerConfig {
// check [server.p2p_config.capabilities] with 'archive_mode' in [server] // check [server.p2p_config.capabilities] with 'archive_mode' in [server]
if let Some(archive) = self.archive_mode { if let Some(archive) = self.archive_mode {
// note: slog not available before config loaded, only print here. // note: slog not available before config loaded, only print here.
if archive != self if archive
.p2p_config != self
.capabilities .p2p_config
.contains(p2p::Capabilities::FULL_HIST) .capabilities
.contains(p2p::Capabilities::FULL_HIST)
{ {
// if conflict, 'archive_mode' win // if conflict, 'archive_mode' win
self.p2p_config self.p2p_config
.capabilities .capabilities
.toggle(p2p::Capabilities::FULL_HIST); .toggle(p2p::Capabilities::FULL_HIST);
println!(
"ServerConfig - capabilities conflict with archive_mode: {}, force to: {:?}",
archive, self.p2p_config.capabilities,
); // note: slog not available before config loaded, only print here.
} }
} }