mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-11 16:31:07 +00:00
Remove unused start_key that new RPC API may not be able to support (#1148)
This commit is contained in:
@@ -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,
|
||||
})))
|
||||
}
|
||||
|
||||
|
||||
@@ -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>;
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user