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,7 +163,8 @@ impl ServerConfig {
// check [server.p2p_config.capabilities] with 'archive_mode' in [server]
if let Some(archive) = self.archive_mode {
// note: slog not available before config loaded, only print here.
if archive != self
if archive
!= self
.p2p_config
.capabilities
.contains(p2p::Capabilities::FULL_HIST)
@ -172,10 +173,6 @@ impl ServerConfig {
self.p2p_config
.capabilities
.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.
}
}