mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-17 03:11:01 +00:00
Stabilize chainHead methods (#1538)
* Stabilize chainHead methods Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Rename fn snake case Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * docs: Fix documentation Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> --------- Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
This commit is contained in:
@@ -42,7 +42,7 @@ impl<T: Config> StorageItems<T> {
|
||||
// Subscribe to events and make the initial request to get an operation ID.
|
||||
let follow_events = follow_handle.subscribe().events();
|
||||
let status = methods
|
||||
.chainhead_unstable_storage(&sub_id, at, queries, None)
|
||||
.chainhead_v1_storage(&sub_id, at, queries, None)
|
||||
.await?;
|
||||
let operation_id: Arc<str> = match status {
|
||||
MethodResponse::LimitReached => {
|
||||
@@ -59,11 +59,7 @@ impl<T: Config> StorageItems<T> {
|
||||
let operation_id = operation_id.clone();
|
||||
let methods = methods.clone();
|
||||
|
||||
Box::pin(async move {
|
||||
methods
|
||||
.chainhead_unstable_continue(&sub_id, &operation_id)
|
||||
.await
|
||||
})
|
||||
Box::pin(async move { methods.chainhead_v1_continue(&sub_id, &operation_id).await })
|
||||
})
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user