From 68288fa6bb1f0171f634e25162dadb70786564d4 Mon Sep 17 00:00:00 2001 From: behzad nouri Date: Thu, 19 Jan 2023 13:35:30 +0000 Subject: [PATCH] Update gossip/src/contact_info.rs Co-authored-by: Trent Nelson --- gossip/src/contact_info.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gossip/src/contact_info.rs b/gossip/src/contact_info.rs index d9470380aee87a..80ad5962e6b101 100644 --- a/gossip/src/contact_info.rs +++ b/gossip/src/contact_info.rs @@ -214,8 +214,8 @@ impl ContactInfo { self.sockets.insert(index, entry); } } - if let Some(entry) = self.cache.get_mut(usize::from(key)) { - *entry = socket; + if let Some(cache_entry) = self.cache.get_mut(usize::from(key)) { + *cache_entry = socket; } debug_assert_matches!(sanitize_entries(&self.addrs, &self.sockets), Ok(())); Ok(())