Remove unused start_key that new RPC API may not be able to support (#1148)

This commit is contained in:
James Wilson
2023-08-30 14:37:50 +01:00
committed by GitHub
parent a3d25db846
commit fd23766184
3 changed files with 2 additions and 4 deletions
+1 -2
View File
@@ -68,7 +68,6 @@ impl<T: Config + Send + Sync + 'static> Backend<T> for LegacyBackend<T> {
async fn storage_fetch_descendant_keys(
&self,
key: Vec<u8>,
starting_at: Option<Vec<u8>>,
at: T::Hash,
) -> Result<StreamOfResults<Vec<u8>>, Error> {
Ok(StreamOf(Box::pin(StorageFetchDescendantKeysStream {
@@ -78,7 +77,7 @@ impl<T: Config + Send + Sync + 'static> Backend<T> for LegacyBackend<T> {
done: Default::default(),
keys: Default::default(),
keys_fut: Default::default(),
pagination_start_key: starting_at,
pagination_start_key: None,
})))
}
-1
View File
@@ -40,7 +40,6 @@ pub trait Backend<T: Config>: sealed::Sealed + Send + Sync + 'static {
async fn storage_fetch_descendant_keys(
&self,
key: Vec<u8>,
starting_at: Option<Vec<u8>>,
at: T::Hash,
) -> Result<StreamOfResults<Vec<u8>>, Error>;
+1 -1
View File
@@ -76,7 +76,7 @@ where
async move {
let keys = client
.backend()
.storage_fetch_descendant_keys(key, None, block_hash)
.storage_fetch_descendant_keys(key, block_hash)
.await?;
Ok(keys)
}