Skip to content

Commit

Permalink
Really start caching by fixing swapped CAS... (solana-labs#18842)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryoqun authored Jul 23, 2021
1 parent 5cabb5b commit 611af87
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 @@ -344,7 +344,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
{
*self.cluster_nodes.write().unwrap() = ClusterNodes::<BroadcastStage>::new(
Expand Down

0 comments on commit 611af87

Please sign in to comment.