mirror of
https://github.com/mimblewimble/grin.git
synced 2025-02-01 17:01: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,19 +163,16 @@ 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
|
||||
.p2p_config
|
||||
.capabilities
|
||||
.contains(p2p::Capabilities::FULL_HIST)
|
||||
if archive
|
||||
!= self
|
||||
.p2p_config
|
||||
.capabilities
|
||||
.contains(p2p::Capabilities::FULL_HIST)
|
||||
{
|
||||
// if conflict, 'archive_mode' win
|
||||
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.
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue