client: expose creating RpcClient
s with custom RpcSender
impls
(cherry picked from commit 6666f23c01db4610975d004cf8430f53ec641d63) # Conflicts: # client/src/rpc_sender.rs
This commit is contained in:
parent
e6f6a8a1b4
commit
83fb17c77b
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user