From 83fb17c77bc52904cfecf1ec35eabf062f5de91a Mon Sep 17 00:00:00 2001 From: Trent Nelson Date: Mon, 28 Feb 2022 11:49:37 -0700 Subject: [PATCH] client: expose creating `RpcClient`s with custom `RpcSender` impls (cherry picked from commit 6666f23c01db4610975d004cf8430f53ec641d63) # Conflicts: # client/src/rpc_sender.rs --- client/src/rpc_client.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/rpc_client.rs b/client/src/rpc_client.rs index 0ea0e93d06..55f4e2c528 100644 --- a/client/src/rpc_client.rs +++ b/client/src/rpc_client.rs @@ -163,7 +163,7 @@ impl RpcClient { /// `RpcSender`. Most applications should use one of the other constructors, /// such as [`new`] and [`new_mock`], which create an `RpcClient` /// encapsulating an [`HttpSender`] and [`MockSender`] respectively. - fn new_sender( + pub fn new_sender( sender: T, config: RpcClientConfig, ) -> Self {