Remove dead code
This commit is contained in:
parent
7305a1f407
commit
83a8e82626
|
@ -440,19 +440,6 @@ impl ClusterInfo {
|
||||||
.map(|x| (x.value.epoch_slots().unwrap(), x.insert_timestamp))
|
.map(|x| (x.value.epoch_slots().unwrap(), x.insert_timestamp))
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn get_gossiped_root_for_node(&self, pubkey: &Pubkey, since: Option<u64>) -> Option<u64> {
|
|
||||||
self.gossip
|
|
||||||
.crds
|
|
||||||
.table
|
|
||||||
.get(&CrdsValueLabel::EpochSlots(*pubkey))
|
|
||||||
.filter(|x| {
|
|
||||||
since
|
|
||||||
.map(|since| x.insert_timestamp > since)
|
|
||||||
.unwrap_or(true)
|
|
||||||
})
|
|
||||||
.map(|x| x.value.epoch_slots().unwrap().root)
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn get_contact_info_for_node(&self, pubkey: &Pubkey) -> Option<&ContactInfo> {
|
pub fn get_contact_info_for_node(&self, pubkey: &Pubkey) -> Option<&ContactInfo> {
|
||||||
self.gossip
|
self.gossip
|
||||||
.crds
|
.crds
|
||||||
|
|
|
@ -1,9 +1,12 @@
|
||||||
use solana_runtime::accounts_db::AccountStorageEntry;
|
use solana_runtime::{accounts_db::AccountStorageEntry, bank::BankSlotDelta};
|
||||||
use solana_runtime::bank::BankSlotDelta;
|
|
||||||
use solana_sdk::clock::Slot;
|
use solana_sdk::clock::Slot;
|
||||||
use std::path::PathBuf;
|
use std::{
|
||||||
use std::sync::mpsc::{Receiver, SendError, Sender};
|
path::PathBuf,
|
||||||
use std::sync::Arc;
|
sync::{
|
||||||
|
mpsc::{Receiver, SendError, Sender},
|
||||||
|
Arc,
|
||||||
|
},
|
||||||
|
};
|
||||||
use tempfile::TempDir;
|
use tempfile::TempDir;
|
||||||
|
|
||||||
pub type SnapshotPackageSender = Sender<SnapshotPackage>;
|
pub type SnapshotPackageSender = Sender<SnapshotPackage>;
|
||||||
|
|
Loading…
Reference in New Issue