|
@@ -190,7 +190,9 @@ impl EncryptionService {
|
|
|
log::trace!("sending KeyExchange message");
|
|
|
self.api.queue::<fleck_core::SendPacketChannel>(
|
|
|
fleck_core::msg::Message::build(KeyExchange {
|
|
|
- pubkey: self.api.with_service(|ns: &fleck_core::NodeService| ns.self_node().pubkey().clone()),
|
|
|
+ pubkey: self.api.with_service(|ns: &fleck_core::NodeService| {
|
|
|
+ *ns.self_node().pubkey()
|
|
|
+ }),
|
|
|
key: x25519_dalek::PublicKey::from(&secret),
|
|
|
})
|
|
|
.with_peer(with.clone()),
|