mirror of
https://github.com/mimblewimble/grin.git
synced 2025-02-02 01:11:09 +03:00
Remove println (#1575)
This commit is contained in:
parent
274df3b8bb
commit
82b785282c
1 changed files with 5 additions and 8 deletions
|
@ -163,7 +163,8 @@ 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
|
||||||
|
!= self
|
||||||
.p2p_config
|
.p2p_config
|
||||||
.capabilities
|
.capabilities
|
||||||
.contains(p2p::Capabilities::FULL_HIST)
|
.contains(p2p::Capabilities::FULL_HIST)
|
||||||
|
@ -172,10 +173,6 @@ impl ServerConfig {
|
||||||
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.
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue