Skip to content

Commit

Permalink
network/libp2p-backend: Suppress warning adding already reserved node…
Browse files Browse the repository at this point in the history
… as reserved (#6703)

Fixes #6598.

---------

Co-authored-by: GitHub Action <[email protected]>
  • Loading branch information
dmitry-markin and actions-user authored Nov 29, 2024
1 parent 5ad8780 commit 8eac4e8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions prdoc/pr_6703.prdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
title: 'network/libp2p-backend: Suppress warning adding already reserved node as reserved'
doc:
- audience: Node Dev
description: Fixes https://github.com/paritytech/polkadot-sdk/issues/6598.
crates:
- name: sc-network
bump: patch
2 changes: 1 addition & 1 deletion substrate/client/network/src/protocol_controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ impl ProtocolController {
/// maintain connections with such peers.
fn on_add_reserved_peer(&mut self, peer_id: PeerId) {
if self.reserved_nodes.contains_key(&peer_id) {
warn!(
debug!(
target: LOG_TARGET,
"Trying to add an already reserved node {peer_id} as reserved on {:?}.",
self.set_id,
Expand Down

0 comments on commit 8eac4e8

Please sign in to comment.