Skip to content

Commit 401c24e

Browse files
tomakarphmeier
authored andcommitted
Fix &mut self -> &self in add_known_address (paritytech#8468)
1 parent 473694a commit 401c24e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/network/src/service.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ impl<B: BlockT + 'static, H: ExHashT> NetworkService<B, H> {
648648
}
649649

650650
/// Adds an address known to a node.
651-
pub fn add_known_address(&mut self, peer_id: PeerId, addr: Multiaddr) {
651+
pub fn add_known_address(&self, peer_id: PeerId, addr: Multiaddr) {
652652
let _ = self
653653
.to_worker
654654
.unbounded_send(ServiceToWorkerMsg::AddKnownAddress(peer_id, addr));

0 commit comments

Comments
 (0)