From 14992dc44f33a2f2ec2e440ece9b9ac9d5d9ae37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bogdan-=C8=98tefan=20Neac=C5=9Fu?= Date: Mon, 18 Nov 2024 10:48:54 +0000 Subject: [PATCH] Actually assign value --- common/wireguard/src/peer_controller.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/wireguard/src/peer_controller.rs b/common/wireguard/src/peer_controller.rs index 9329b6e9d10..8c7d94784ae 100644 --- a/common/wireguard/src/peer_controller.rs +++ b/common/wireguard/src/peer_controller.rs @@ -196,7 +196,7 @@ impl PeerController { .insert(peer.public_key.clone(), bandwidth_storage_manager); // try to immediately update the host information, to eliminate races if let Ok(host_information) = self.wg_api.inner.read_interface_data() { - *self.host_information.write().await + *self.host_information.write().await = host_information; } tokio::spawn(async move { if let Err(e) = handle.run().await {