Remove async-trait from tendermint-machine, tributary-chain

This commit is contained in:
Luke Parker
2025-01-08 16:41:11 -05:00
parent 2121a9b131
commit 376a66b000
9 changed files with 178 additions and 169 deletions

View File

@@ -1,11 +1,12 @@
use core::future::Future;
pub use crate::P2p;
#[derive(Clone, Debug)]
pub struct DummyP2p;
#[async_trait::async_trait]
impl P2p for DummyP2p {
async fn broadcast(&self, _: [u8; 32], _: Vec<u8>) {
unimplemented!()
fn broadcast(&self, _: [u8; 32], _: Vec<u8>) -> impl Send + Future<Output = ()> {
async move { unimplemented!() }
}
}