parent
7b8707be1e
commit
c2590ce526
|
|
@ -2127,6 +2127,7 @@ version = "0.1.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"color-eyre",
|
"color-eyre",
|
||||||
"eyre",
|
"eyre",
|
||||||
|
"futures-util",
|
||||||
"tokio",
|
"tokio",
|
||||||
"tower",
|
"tower",
|
||||||
"tracing",
|
"tracing",
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@ edition = "2018"
|
||||||
[dependencies]
|
[dependencies]
|
||||||
zebra-chain = { path = "../zebra-chain" }
|
zebra-chain = { path = "../zebra-chain" }
|
||||||
zebra-state = { path = "../zebra-state" }
|
zebra-state = { path = "../zebra-state" }
|
||||||
|
futures-util = "0.3.5"
|
||||||
tower = "0.3.1"
|
tower = "0.3.1"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@
|
||||||
//! Verification is provided via a `tower::Service`, to support backpressure and batch
|
//! Verification is provided via a `tower::Service`, to support backpressure and batch
|
||||||
//! verification.
|
//! verification.
|
||||||
|
|
||||||
|
use futures_util::FutureExt;
|
||||||
use std::{
|
use std::{
|
||||||
error,
|
error,
|
||||||
future::Future,
|
future::Future,
|
||||||
|
|
@ -80,7 +81,7 @@ where
|
||||||
block: block.into(),
|
block: block.into(),
|
||||||
});
|
});
|
||||||
|
|
||||||
Box::pin(async move { Ok(header_hash) })
|
async move { Ok(header_hash) }.boxed()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue