From e77e30dbd3e36c01664fd82081a6e148a7436073 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Fri, 9 Dec 2022 11:08:22 +0000 Subject: [PATCH] rpc: Drop subscription only once Signed-off-by: Alexandru Vasile --- subxt/src/rpc/rpc.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/subxt/src/rpc/rpc.rs b/subxt/src/rpc/rpc.rs index b555686f57..19dbacc782 100644 --- a/subxt/src/rpc/rpc.rs +++ b/subxt/src/rpc/rpc.rs @@ -890,17 +890,13 @@ impl Rpc { ) .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) };