removes &Arc<Self> receivers (#14234) (#14262)

(cherry picked from commit a14cfd660a)

Co-authored-by: behzad nouri <behzadnouri@gmail.com>
This commit is contained in:
mergify[bot]
2020-12-23 02:11:08 +00:00
committed by GitHub
parent 582b4c9edf
commit 6dd3c7c2dd
2 changed files with 8 additions and 8 deletions

View File

@@ -1731,7 +1731,7 @@ impl ClusterInfo {
Ok(())
}
fn handle_adopt_shred_version(self: &Arc<Self>, adopt_shred_version: &mut bool) {
fn handle_adopt_shred_version(&self, adopt_shred_version: &mut bool) {
// Adopt the entrypoint's `shred_version` if ours is unset
if *adopt_shred_version {
// If gossip was given an entrypoint, look up the ContactInfo by the given
@@ -1765,7 +1765,7 @@ impl ClusterInfo {
}
fn handle_purge(
self: &Arc<Self>,
&self,
thread_pool: &ThreadPool,
bank_forks: &Option<Arc<RwLock<BankForks>>>,
stakes: &HashMap<Pubkey, u64>,