validator: changing tendermint start to run()

This commit is contained in:
Dave Hrycyszyn
2020-01-29 12:54:30 +00:00
parent f02b37f5c9
commit b93457b863
2 changed files with 5 additions and 4 deletions
+4 -3
View File
@@ -22,6 +22,10 @@ impl Abci {
pub fn new() -> Abci {
Abci { count: 0 }
}
pub async fn run(self) {
abci::run_local(self);
}
}
impl abci::Application for Abci {
@@ -63,6 +67,3 @@ impl abci::Application for Abci {
resp
}
}
pub async fn start(app: Abci) {
abci::run_local(app);
}
+1 -1
View File
@@ -46,7 +46,7 @@ impl Validator<DummyMixIdentityKeyPair, DummyMixIdentityPrivateKey, DummyMixIden
info!("Setting up Tokio runtime");
let mut rt = Runtime::new().unwrap();
let abci_future = tendermint::start(self.tendermint_abci);
let abci_future = self.tendermint_abci.start();
let health_check_future = self.health_check.run();
rt.block_on(abci_future);