mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-10-27 22:19:49 +00:00
Remove unused start_key that new RPC API may not be able to support (#1148)
This commit is contained in:
1 parent
a3d25db846
commit
fd23766184
3 files changed
+2
-4
No files matched your search
@@ -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