core/src: Take ref of key in SignedEnvelope & PeerRecord (#2516)

This commit is contained in:
Laurent Senta
2022-02-15 23:47:32 +01:00
committed by GitHub
parent dceb72bfe2
commit df4905d798
5 changed files with 13 additions and 9 deletions

View File

@ -234,7 +234,7 @@ impl NetworkBehaviour for Behaviour {
));
}
let action = match PeerRecord::new(self.keypair.clone(), external_addresses) {
let action = match PeerRecord::new(&self.keypair, external_addresses) {
Ok(peer_record) => NetworkBehaviourAction::NotifyHandler {
peer_id: rendezvous_node,
event: handler::OutboundInEvent::NewSubstream {