Skip to content

Commit

Permalink
fix clippy error
Browse files Browse the repository at this point in the history
  • Loading branch information
KirillLykov committed Nov 8, 2024
1 parent d234341 commit b81e5ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rpc/src/cluster_tpu_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ impl TpuInfo for ClusterTpuInfo {
.filter_map(|leader_pubkey| {
self.recent_peers
.get(leader_pubkey)
.and_then(|addr| match protocol {
Protocol::UDP => Some(&addr.0),
Protocol::QUIC => Some(&addr.1),
.map(|addr| match protocol {
Protocol::UDP => &addr.0,
Protocol::QUIC => &addr.1,
})
})
.collect()
Expand Down

0 comments on commit b81e5ef

Please sign in to comment.