add PartialEq, Eq and spell correction (#26614)

This commit is contained in:
HaoranYi 2022-07-14 09:55:03 -05:00 committed by GitHub
parent 3e9bd6170c
commit 819d6512ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@ pub type SlotSlice<'s, T> = &'s [(Slot, T)];
pub type RefCount = u64; pub type RefCount = u64;
pub type AccountMap<V> = Arc<InMemAccountsIndex<V>>; pub type AccountMap<V> = Arc<InMemAccountsIndex<V>>;
#[derive(Debug, Clone, Copy)] #[derive(Debug, Clone, Copy, PartialEq, Eq)]
/// how accounts index 'upsert' should handle reclaims /// how accounts index 'upsert' should handle reclaims
pub enum UpsertReclaim { pub enum UpsertReclaim {
/// previous entry for this slot in the index is expected to be cached, so irrelevant to reclaims /// previous entry for this slot in the index is expected to be cached, so irrelevant to reclaims
@ -80,7 +80,7 @@ pub enum UpsertReclaim {
/// previous entry for this slot in the index may need to be reclaimed, so return it. /// previous entry for this slot in the index may need to be reclaimed, so return it.
/// reclaims is the only output of upsert, requiring a synchronous execution /// reclaims is the only output of upsert, requiring a synchronous execution
PopulateReclaims, PopulateReclaims,
/// overwrite existing data in the same slot and do not return in 'relaims' /// overwrite existing data in the same slot and do not return in 'reclaims'
IgnoreReclaims, IgnoreReclaims,
} }