Skip to content

Commit

Permalink
Fix &mut self -> &self in add_known_address (paritytech#8468)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaka authored and hirschenberger committed Apr 14, 2021
1 parent fc2484c commit 7066523
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/network/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ impl<B: BlockT + 'static, H: ExHashT> NetworkService<B, H> {
}

/// Adds an address known to a node.
pub fn add_known_address(&mut self, peer_id: PeerId, addr: Multiaddr) {
pub fn add_known_address(&self, peer_id: PeerId, addr: Multiaddr) {
let _ = self
.to_worker
.unbounded_send(ServiceToWorkerMsg::AddKnownAddress(peer_id, addr));
Expand Down

0 comments on commit 7066523

Please sign in to comment.