client: expose creating RpcClient
s with custom RpcSender
impls
(cherry picked from commit 6666f23c01
)
# Conflicts:
# client/src/rpc_sender.rs
This commit is contained in:
committed by
Trent Nelson
parent
e6f6a8a1b4
commit
83fb17c77b
@ -163,7 +163,7 @@ impl RpcClient {
|
|||||||
/// `RpcSender`. Most applications should use one of the other constructors,
|
/// `RpcSender`. Most applications should use one of the other constructors,
|
||||||
/// such as [`new`] and [`new_mock`], which create an `RpcClient`
|
/// such as [`new`] and [`new_mock`], which create an `RpcClient`
|
||||||
/// encapsulating an [`HttpSender`] and [`MockSender`] respectively.
|
/// 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,
|
sender: T,
|
||||||
config: RpcClientConfig,
|
config: RpcClientConfig,
|
||||||
) -> Self {
|
) -> Self {
|
||||||
|
Reference in New Issue
Block a user