solana-with-rpc-optimizations/local-cluster/src
Illia Bobyr 4353ac6797
Pass Arc<AtomicBool> by value, not by reference. (#31916)
`Arc` is already a reference internally, so it does not seem to be
beneficial to pass a reference to it.  Just adds an extra layer of
indirection.

Functions that need to be able to increment `Arc` reference count need
to take `Arc<AtomicBool>`, but those that just want to read the
`AtomicBool` value can accept `&AtomicBool`, making them a bit more
generic.

This change focuses specifically on `Arc<AtomicBool>`.  There are other
uses of `&Arc<T>` in the code base that could be converted in a similar
manner.  But it would make the change even larger.
2023-06-01 17:25:48 -07:00
..
cluster.rs embeds the new gossip ContactInfo in ClusterInfo (#30022) 2023-02-10 20:07:45 +00:00
cluster_tests.rs Pass Arc<AtomicBool> by value, not by reference. (#31916) 2023-06-01 17:25:48 -07:00
lib.rs Add test_incremental_snapshot_download() to local-cluster (#19746) 2021-09-13 21:44:48 -05:00
local_cluster.rs separates out connection-cache metrics for different protocols (#31803) 2023-05-25 14:48:22 +00:00
local_cluster_snapshot_utils.rs embeds the new gossip ContactInfo in ClusterInfo (#30022) 2023-02-10 20:07:45 +00:00
validator_configs.rs validator: remove optional remote accounts hash consistency check (#31279) 2023-05-16 14:23:13 -06:00