From 9551ecd9a385848bc65bc2ca259bfaeee85be80d Mon Sep 17 00:00:00 2001 From: John Smith Date: Sun, 30 Jul 2023 16:25:17 -0400 Subject: [PATCH] fix compilation error --- veilid-core/src/network_manager/connection_table.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/veilid-core/src/network_manager/connection_table.rs b/veilid-core/src/network_manager/connection_table.rs index eab8606e..a6d60ec6 100644 --- a/veilid-core/src/network_manager/connection_table.rs +++ b/veilid-core/src/network_manager/connection_table.rs @@ -178,9 +178,9 @@ impl ConnectionTable { let mut out_conn = None; if inner.conn_by_id[protocol_index].len() > inner.max_connections[protocol_index] { if let Some((lruk, lru_conn)) = inner.conn_by_id[protocol_index].peek_lru() { + let lruk = *lruk; log_net!(debug "connection lru out: {:?}", lru_conn); - out_conn = Some(lru_conn); - Self::remove_connection_records(&mut *inner, *lruk); + out_conn = Some(Self::remove_connection_records(&mut *inner, lruk)); } }