File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ const RPC_BLOB_GET_CHANNEL_CAP: usize = 2;
62
62
63
63
impl < D : crate :: store:: Store > Blobs < D > {
64
64
/// Get a client for the blobs protocol
65
- pub fn client ( self : Arc < Self > ) -> blobs:: Client < MemConnector > {
65
+ pub fn client ( self : Arc < Self > ) -> blobs:: MemClient {
66
66
let client = self
67
67
. rpc_handler
68
68
. get_or_init ( || RpcHandler :: new ( & self ) )
Original file line number Diff line number Diff line change @@ -111,6 +111,9 @@ pub struct Client<C = BoxedConnector<RpcService>> {
111
111
pub ( super ) rpc : RpcClient < RpcService , C > ,
112
112
}
113
113
114
+ /// Type alias for a memory-backed client.
115
+ pub type MemClient = Client < crate :: rpc:: MemConnector > ;
116
+
114
117
impl < C > Client < C >
115
118
where
116
119
C : Connector < RpcService > ,
You can’t perform that action at this time.
0 commit comments