mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 15:51:12 +00:00
rpc: Drop subscription only once
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
This commit is contained in:
@@ -890,17 +890,13 @@ impl<T: Config> Rpc<T> {
|
||||
)
|
||||
.await?;
|
||||
|
||||
println!("Dropping subscription");
|
||||
drop(sub);
|
||||
|
||||
let result: bool = self
|
||||
let _result: bool = self
|
||||
.client
|
||||
.request(
|
||||
"chainHead_unstable_unfollow",
|
||||
rpc_params![subscription_id_rpc],
|
||||
)
|
||||
.await?;
|
||||
println!("Subscription dropped with result={:?}", result);
|
||||
|
||||
(bytes, event)
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user