Skip to content

Commit

Permalink
Really start caching by fixing swapped CAS... (solana-labs#18842) (so…
Browse files Browse the repository at this point in the history
…lana-labs#18969)

(cherry picked from commit 611af87)

Co-authored-by: Ryo Onodera <[email protected]>
  • Loading branch information
mergify[bot] and ryoqun authored Jul 29, 2021
1 parent 7fc85b8 commit 40fc144
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/broadcast_stage/standard_broadcast_run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ impl StandardBroadcastRun {
if now - last > BROADCAST_PEER_UPDATE_INTERVAL_MS
&& self
.last_peer_update
.compare_and_swap(now, last, Ordering::Relaxed)
.compare_and_swap(last, now, Ordering::Relaxed)
== last
{
let mut w_broadcast_peer_cache = self.broadcast_peer_cache.write().unwrap();
Expand Down

0 comments on commit 40fc144

Please sign in to comment.