Fix &mut self -> &self in add_known_address (#8468)

This commit is contained in:
Pierre Krieger
2021-03-26 22:28:55 +01:00
committed by GitHub
parent e8aeadf202
commit 5d2640240c
+1 -1
View File
@@ -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));