diff --git a/availability-store/src/worker.rs b/availability-store/src/worker.rs
index d7461cea52901..153f5d5dd9598 100644
--- a/availability-store/src/worker.rs
+++ b/availability-store/src/worker.rs
@@ -21,8 +21,8 @@ use std::thread;
use log::{error, info, trace, warn};
use sp_blockchain::{Result as ClientResult};
-use sp_runtime::traits::{Header as HeaderT, ProvideRuntimeApi};
-use sp_api::{ApiExt, ApiErrorFor};
+use sp_runtime::traits::{Header as HeaderT, ProvideRuntimeApi, Block as BlockT};
+use sp_api::ApiExt;
use client::{
BlockchainEvents, BlockBody,
blockchain::ProvideCache,
@@ -206,30 +206,25 @@ where
}
-fn fetch_candidates
(client: &P, block: &BlockId, parent: &BlockId)
- -> ClientResult