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

@ -730,7 +730,7 @@ mod tests {
) -> NewRegistration {
NewRegistration::new(
Namespace::from_static(namespace),
PeerRecord::new(identity, vec!["/ip4/127.0.0.1/tcp/1234".parse().unwrap()]).unwrap(),
PeerRecord::new(&identity, vec!["/ip4/127.0.0.1/tcp/1234".parse().unwrap()]).unwrap(),
ttl,
)
}