client: expose creating RpcClients with custom RpcSender impls

(cherry picked from commit 6666f23c01db4610975d004cf8430f53ec641d63)

# Conflicts:
#	client/src/rpc_sender.rs
This commit is contained in:
Trent Nelson 2022-02-28 11:49:37 -07:00 committed by Trent Nelson
parent e6f6a8a1b4
commit 83fb17c77b

View File

@ -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<T: RpcSender + Send + Sync + 'static>(
pub fn new_sender<T: RpcSender + Send + Sync + 'static>(
sender: T,
config: RpcClientConfig,
) -> Self {