mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 11:41:04 +00:00
xxx: Backup
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
This commit is contained in:
@@ -113,6 +113,8 @@ impl BackgroundTask {
|
||||
}
|
||||
}
|
||||
Ok(RpcResponse::Subscription { method, id, result }) => {
|
||||
println!(" BACKRGOUND response {result:?}\n");
|
||||
|
||||
// Subxt calls into `author_submitAndWatchExtrinsic`, however the smoldot produces
|
||||
// `{"event":"broadcasted","numPeers":1}` which is part of the RPC V2 API. Ignore
|
||||
// this spurious event.
|
||||
@@ -131,6 +133,9 @@ impl BackgroundTask {
|
||||
"Cannot send notification to subscription {:?}",
|
||||
id
|
||||
);
|
||||
|
||||
// Remove the sender if the subscription dropped the receiver.
|
||||
self.subscriptions.remove(&id);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -509,7 +509,11 @@ pub enum FollowEvent<Hash> {
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub struct ChainHeadResult<T> {
|
||||
/// Result of the method.
|
||||
#[cfg(not(feature = "experimental-light-client"))]
|
||||
pub result: T,
|
||||
/// Result of the method.
|
||||
#[cfg(feature = "experimental-light-client")]
|
||||
pub value: Vec<T>,
|
||||
}
|
||||
|
||||
/// The event generated by the body / call / storage methods.
|
||||
|
||||
Reference in New Issue
Block a user