This commit is contained in:
Henry de Valence 2020-11-24 16:25:35 -08:00
parent de8415dcb1
commit fa02b266ca
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ where
let fut = async move {
// Check if the block is already in the state.
match state.oneshot(zs::Request::Depth(hash.into())).await {
match state.oneshot(zs::Request::Depth(hash)).await {
Ok(zs::Response::Depth(None)) => Ok(()),
Ok(zs::Response::Depth(Some(_))) => Err("already present".into()),
Ok(_) => unreachable!("wrong response"),