mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-10-26 21:49:49 +00:00
fix check warnings
This commit is contained in:
1 parent
61b9545288
commit
c8e6722a03
2 files changed
+4
-11
No files matched your search
@@ -332,8 +332,7 @@ impl<T: Config> LegacyRpcMethods<T> {
|
||||
public: Vec<u8>,
|
||||
) -> Result<(), Error> {
|
||||
let params = rpc_params![key_type, suri, Bytes(public)];
|
||||
self.client.request("author_insertKey", params).await?;
|
||||
Ok(())
|
||||
self.client.request("author_insertKey", params).await
|
||||
}
|
||||
|
||||
/// Generate new session keys and returns the corresponding public keys.
|
||||
|
||||
@@ -77,9 +77,7 @@ impl<T: Config> UnstableRpcMethods<T> {
|
||||
"chainHead_v1_continue",
|
||||
rpc_params![follow_subscription, operation_id],
|
||||
)
|
||||
.await?;
|
||||
|
||||
Ok(())
|
||||
.await
|
||||
}
|
||||
|
||||
/// Stops an operation started with `chainHead_v1_body`, `chainHead_v1_call`, or
|
||||
@@ -97,9 +95,7 @@ impl<T: Config> UnstableRpcMethods<T> {
|
||||
"chainHead_v1_stopOperation",
|
||||
rpc_params![follow_subscription, operation_id],
|
||||
)
|
||||
.await?;
|
||||
|
||||
Ok(())
|
||||
.await
|
||||
}
|
||||
|
||||
/// Call the `chainHead_v1_body` method and return an operation ID to obtain the block's body.
|
||||
@@ -222,9 +218,7 @@ impl<T: Config> UnstableRpcMethods<T> {
|
||||
) -> Result<(), Error> {
|
||||
self.client
|
||||
.request("chainHead_v1_unpin", rpc_params![subscription_id, hash])
|
||||
.await?;
|
||||
|
||||
Ok(())
|
||||
.await
|
||||
}
|
||||
|
||||
/// Return the genesis hash.
|
||||
|
||||
Reference in new issue
Block a user