use std::future::Future;
pub trait ProcessedHeight: Send + Sync {
fn processed_height(&self) -> impl Future<Output = u64> + Send;
}
impl ProcessedHeight for () {
async fn processed_height(&self) -> u64 {
0
}
}
impl ProcessedHeight for bool {
async fn processed_height(&self) -> u64 {
0
}
}