1
0
mirror of https://github.com/fafhrd91/actix-web synced 2024-11-24 08:22:59 +01:00

fix connector

This commit is contained in:
Nikolay Kim 2019-03-09 13:38:56 -08:00
parent d026821924
commit 9c7056e9b8
2 changed files with 6 additions and 2 deletions

View File

@ -69,7 +69,7 @@ where
/// ///
/// To disable timeout set value to 0. /// To disable timeout set value to 0.
/// ///
/// By default disconnect timeout is set to 3000 milliseconds. /// By default disconnect timeout is set to 0.
pub fn client_disconnect(mut self, val: u64) -> Self { pub fn client_disconnect(mut self, val: u64) -> Self {
self.client_disconnect = val; self.client_disconnect = val;
self self

View File

@ -269,7 +269,11 @@ mod connect_impl {
impl<T, Io> Service for InnerConnector<T, Io> impl<T, Io> Service for InnerConnector<T, Io>
where where
Io: AsyncRead + AsyncWrite + 'static, Io: AsyncRead + AsyncWrite + 'static,
T: Service<Connect, Response = (Connect, Io, Protocol), Error = ConnectorError>, T: Service<
Request = Connect,
Response = (Connect, Io, Protocol),
Error = ConnectorError,
>,
{ {
type Request = Connect; type Request = Connect;
type Response = IoConnection<Io>; type Response = IoConnection<Io>;