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,4 @@
use crate::{
result::{Error, Result},
service::Service,
};
use crate::result::{Error, Result};
use solana_runtime::bank::Bank;
use solana_sdk::clock::Slot;
use solana_vote_api::{vote_state::VoteState, vote_state::MAX_LOCKOUT_HISTORY};
@@ -230,12 +227,8 @@ impl AggregateCommitmentService {
}
}
}
}
impl Service for AggregateCommitmentService {
type JoinReturnType = ();
fn join(self) -> thread::Result<()> {
pub fn join(self) -> thread::Result<()> {
self.t_commitment.join()
}
}