rosenpass: Remove needless borrow

This commit is contained in:
Emil Engler
2024-04-25 11:11:56 +02:00
parent a581f7dfa7
commit 4e8344660e

View File

@@ -724,7 +724,7 @@ impl AppServer {
) -> Result<crate::protocol::HandleMsgResult> {
match endpoint {
Endpoint::SocketBoundAddress(socket) => {
self.crypt.handle_msg_under_load(&rx, &mut *tx, socket)
self.crypt.handle_msg_under_load(rx, &mut *tx, socket)
}
Endpoint::Discovery(_) => {
anyhow::bail!("Host-path discovery is not supported under load")