Delete Service trait (#6921)

This commit is contained in:
Greg Fitzgerald
2019-11-13 11:12:09 -07:00
committed by GitHub
parent 4b1e9ada18
commit a3a830e1ab
35 changed files with 57 additions and 222 deletions

View File

@ -1,7 +1,6 @@
//! The `ledger_cleanup_service` drops older ledger data to limit disk space usage
use crate::result::{Error, Result};
use crate::service::Service;
use solana_ledger::blocktree::Blocktree;
use solana_sdk::clock::DEFAULT_SLOTS_PER_EPOCH;
use solana_sdk::pubkey::Pubkey;
@ -63,12 +62,8 @@ impl LedgerCleanupService {
}
Ok(())
}
}
impl Service for LedgerCleanupService {
type JoinReturnType = ();
fn join(self) -> thread::Result<()> {
pub fn join(self) -> thread::Result<()> {
self.t_cleanup.join()
}
}