Fix build breakage (#12220)

This commit is contained in:
Ryo Onodera 2020-09-15 13:04:04 +09:00 committed by GitHub
parent c8f03c7f6d
commit c1e76fd5f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -171,7 +171,7 @@ impl CachedExecutors {
}
pub fn get(&self, pubkey: &Pubkey) -> Option<Arc<dyn Executor>> {
self.executors.get(pubkey).map(|(count, executor)| {
count.fetch_add(1, Ordering::Relaxed);
count.fetch_add(1, Relaxed);
executor.clone()
})
}
@ -182,7 +182,7 @@ impl CachedExecutors {
let default_key = Pubkey::default();
let mut least_key = &default_key;
for (key, (count, _)) in self.executors.iter() {
let count = count.load(Ordering::Relaxed);
let count = count.load(Relaxed);
if count < least {
least = count;
least_key = key;