remove redundant type aliases

This commit is contained in:
Brooks Prumo
2021-09-15 15:31:28 -05:00
committed by Jeff Washington (jwash)
parent a3c30fe5dd
commit 09958b8292
3 changed files with 5 additions and 10 deletions

View File

@ -1,4 +1,4 @@
use crate::bucket_map::{BucketMapError, BucketMapKeyValue};
use crate::bucket_map::{BucketMapError, BucketMapKeyValue, MaxSearch, RefCount};
use crate::data_bucket::{BucketMapStats, DataBucket};
use crate::index_entry::IndexEntry;
use rand::thread_rng;
@ -12,9 +12,6 @@ use std::ops::RangeBounds;
use std::path::PathBuf;
use std::sync::atomic::Ordering;
use std::sync::Arc;
pub type MaxSearch = u8;
type RefCount = u64;
// >= 2 instances of this per 'bucket' in the bucket map. 1 for index, >= 1 for data
pub struct Bucket<T> {

View File

@ -11,9 +11,9 @@ use std::path::PathBuf;
use std::sync::Arc;
use std::sync::RwLock;
use tempfile::TempDir;
pub type MaxSearch = u8;
type RefCount = u64;
pub type MaxSearch = u8;
pub type RefCount = u64;
pub struct BucketMapKeyValue<T> {
pub pubkey: Pubkey,

View File

@ -1,12 +1,11 @@
use crate::bucket::Bucket;
use crate::data_bucket::{ DataBucket};
use crate::bucket_map::RefCount;
use crate::data_bucket::DataBucket;
use solana_sdk::pubkey::Pubkey;
use std::collections::hash_map::DefaultHasher;
use std::fmt::Debug;
use std::hash::{Hash, Hasher};
type RefCount = u64;
type NumSlots = u64;
#[repr(C)]
@ -62,4 +61,3 @@ impl IndexEntry {
s.finish().max(1u64)
}
}