@@ -31,12 +31,12 @@ where
31
31
address : A ,
32
32
) -> RedisConnector <
33
33
A ,
34
- impl Service < Request = Connect < A > , Response = IoBoxed , Error = connect:: ConnectError > ,
34
+ impl Service < Connect < A > , Response = IoBoxed , Error = connect:: ConnectError > ,
35
35
> {
36
36
RedisConnector {
37
37
address,
38
38
passwords : Vec :: new ( ) ,
39
- connector : Connector :: default ( ) . map ( |io| io. into_boxed ( ) ) ,
39
+ connector : Connector :: default ( ) . map ( |io| io. seal ( ) ) ,
40
40
pool : PoolId :: P7 . pool_ref ( ) ,
41
41
}
42
42
}
45
45
impl < A , T > RedisConnector < A , T >
46
46
where
47
47
A : Address + Clone ,
48
- T : Service < Request = Connect < A > , Response = IoBoxed , Error = connect:: ConnectError > ,
48
+ T : Service < Connect < A > , Response = IoBoxed , Error = connect:: ConnectError > ,
49
49
{
50
50
/// Add redis auth password
51
51
pub fn password < U > ( mut self , password : U ) -> Self
@@ -72,14 +72,14 @@ where
72
72
connector : U ,
73
73
) -> RedisConnector <
74
74
A ,
75
- impl Service < Request = Connect < A > , Response = IoBoxed , Error = connect:: ConnectError > ,
75
+ impl Service < Connect < A > , Response = IoBoxed , Error = connect:: ConnectError > ,
76
76
>
77
77
where
78
78
F : Filter ,
79
- U : Service < Request = Connect < A > , Response = Io < F > , Error = connect:: ConnectError > ,
79
+ U : Service < Connect < A > , Response = Io < F > , Error = connect:: ConnectError > ,
80
80
{
81
81
RedisConnector {
82
- connector : connector. map ( |io| io. into_boxed ( ) ) ,
82
+ connector : connector. map ( |io| io. seal ( ) ) ,
83
83
address : self . address ,
84
84
passwords : self . passwords ,
85
85
pool : self . pool ,
89
89
/// Use custom boxed connector
90
90
pub fn boxed_connector < U > ( self , connector : U ) -> RedisConnector < A , U >
91
91
where
92
- U : Service < Request = Connect < A > , Response = IoBoxed , Error = connect:: ConnectError > ,
92
+ U : Service < Connect < A > , Response = IoBoxed , Error = connect:: ConnectError > ,
93
93
{
94
94
RedisConnector {
95
95
connector,
@@ -106,7 +106,7 @@ where
106
106
connector : SslConnector ,
107
107
) -> RedisConnector <
108
108
A ,
109
- impl Service < Request = Connect < A > , Response = IoBoxed , Error = connect:: ConnectError > ,
109
+ impl Service < Connect < A > , Response = IoBoxed , Error = connect:: ConnectError > ,
110
110
> {
111
111
RedisConnector {
112
112
address : self . address ,
0 commit comments