Skip to content

Commit

Permalink
fix: call should not consume the client
Browse files Browse the repository at this point in the history
  • Loading branch information
miraclx committed Nov 11, 2021
1 parent 43aea25 commit 471a53b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ impl<A: AuthState> JsonRpcClient<A> {
}

/// RPC method executor for the client.
pub async fn call<M>(self, method: M) -> MethodCallResult<M::Response, M::Error>
pub async fn call<M>(&self, method: M) -> MethodCallResult<M::Response, M::Error>
where
M: methods::RpcMethod,
{
Expand Down

0 comments on commit 471a53b

Please sign in to comment.