mirror of
https://github.com/fafhrd91/actix-web
synced 2024-11-24 08:22:59 +01:00
fix non ssl code
This commit is contained in:
parent
ce0b172598
commit
01329af1c2
@ -238,11 +238,7 @@ mod connect_impl {
|
|||||||
pub(crate) struct InnerConnector<T, Io>
|
pub(crate) struct InnerConnector<T, Io>
|
||||||
where
|
where
|
||||||
Io: AsyncRead + AsyncWrite + 'static,
|
Io: AsyncRead + AsyncWrite + 'static,
|
||||||
T: Service<
|
T: Service<Connect, Response = (Connect, Io, Protocol), Error = ConnectorError>,
|
||||||
Request = Connect,
|
|
||||||
Response = (Connect, Io, Protocol),
|
|
||||||
Error = ConnectorError,
|
|
||||||
>,
|
|
||||||
{
|
{
|
||||||
pub(crate) tcp_pool: ConnectionPool<T, Io>,
|
pub(crate) tcp_pool: ConnectionPool<T, Io>,
|
||||||
}
|
}
|
||||||
@ -250,11 +246,8 @@ mod connect_impl {
|
|||||||
impl<T, Io> Clone for InnerConnector<T, Io>
|
impl<T, Io> Clone for InnerConnector<T, Io>
|
||||||
where
|
where
|
||||||
Io: AsyncRead + AsyncWrite + 'static,
|
Io: AsyncRead + AsyncWrite + 'static,
|
||||||
T: Service<
|
T: Service<Connect, Response = (Connect, Io, Protocol), Error = ConnectorError>
|
||||||
Request = Connect,
|
+ Clone,
|
||||||
Response = (Connect, Io, Protocol),
|
|
||||||
Error = ConnectorError,
|
|
||||||
> + Clone,
|
|
||||||
{
|
{
|
||||||
fn clone(&self) -> Self {
|
fn clone(&self) -> Self {
|
||||||
InnerConnector {
|
InnerConnector {
|
||||||
@ -263,20 +256,15 @@ mod connect_impl {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<T, Io> Service for InnerConnector<T, Io>
|
impl<T, Io> Service<Connect> for InnerConnector<T, Io>
|
||||||
where
|
where
|
||||||
Io: AsyncRead + AsyncWrite + 'static,
|
Io: AsyncRead + AsyncWrite + 'static,
|
||||||
T: Service<
|
T: Service<Connect, Response = (Connect, Io, Protocol), Error = ConnectorError>,
|
||||||
Request = Connect,
|
|
||||||
Response = (Connect, Io, Protocol),
|
|
||||||
Error = ConnectorError,
|
|
||||||
>,
|
|
||||||
{
|
{
|
||||||
type Request = Connect;
|
|
||||||
type Response = IoConnection<Io>;
|
type Response = IoConnection<Io>;
|
||||||
type Error = ConnectorError;
|
type Error = ConnectorError;
|
||||||
type Future = Either<
|
type Future = Either<
|
||||||
<ConnectionPool<T, Io> as Service>::Future,
|
<ConnectionPool<T, Io> as Service<Connect>>::Future,
|
||||||
FutureResult<IoConnection<Io>, ConnectorError>,
|
FutureResult<IoConnection<Io>, ConnectorError>,
|
||||||
>;
|
>;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user