Skip to content

Commit

Permalink
Update gossip/src/contact_info.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Trent Nelson <[email protected]>
  • Loading branch information
behzadnouri and t-nelson authored Jan 19, 2023
1 parent dfb521c commit 68288fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gossip/src/contact_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
Expand Down

0 comments on commit 68288fa

Please sign in to comment.