mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-28 01:32:57 +01:00
update utils dep
This commit is contained in:
parent
a88b3b090d
commit
65a313c78b
@ -37,10 +37,10 @@ session = ["cookie/secure"]
|
||||
ssl = ["openssl", "actix-connector/ssl"]
|
||||
|
||||
[dependencies]
|
||||
actix-service = "0.3.0"
|
||||
actix-service = "0.3.1"
|
||||
actix-codec = "0.1.0"
|
||||
actix-connector = "0.3.0"
|
||||
actix-utils = "0.3.0"
|
||||
actix-utils = "0.3.1"
|
||||
|
||||
base64 = "0.10"
|
||||
backtrace = "0.3"
|
||||
|
@ -2,7 +2,7 @@ use std::time::Duration;
|
||||
|
||||
use actix_codec::{AsyncRead, AsyncWrite};
|
||||
use actix_connector::{Resolver, TcpConnector};
|
||||
use actix_service::{Apply, Service, ServiceExt};
|
||||
use actix_service::{Service, ServiceExt};
|
||||
use actix_utils::timeout::{TimeoutError, TimeoutService};
|
||||
use trust_dns_resolver::config::{ResolverConfig, ResolverOpts};
|
||||
|
||||
@ -140,8 +140,8 @@ impl Connector {
|
||||
> + Clone {
|
||||
#[cfg(not(feature = "ssl"))]
|
||||
{
|
||||
let connector = Apply::new(
|
||||
TimeoutService::new(self.timeout),
|
||||
let connector = TimeoutService::new(
|
||||
self.timeout,
|
||||
self.resolver.map_err(ConnectorError::from).and_then(
|
||||
TcpConnector::default()
|
||||
.from_err()
|
||||
@ -168,8 +168,8 @@ impl Connector {
|
||||
const H2: &[u8] = b"h2";
|
||||
use actix_connector::ssl::OpensslConnector;
|
||||
|
||||
let ssl_service = Apply::new(
|
||||
TimeoutService::new(self.timeout),
|
||||
let ssl_service = TimeoutService::new(
|
||||
self.timeout,
|
||||
self.resolver
|
||||
.clone()
|
||||
.map_err(ConnectorError::from)
|
||||
@ -197,8 +197,8 @@ impl Connector {
|
||||
TimeoutError::Timeout => ConnectorError::Timeout,
|
||||
});
|
||||
|
||||
let tcp_service = Apply::new(
|
||||
TimeoutService::new(self.timeout),
|
||||
let tcp_service = TimeoutService::new(
|
||||
self.timeout,
|
||||
self.resolver.map_err(ConnectorError::from).and_then(
|
||||
TcpConnector::default()
|
||||
.from_err()
|
||||
|
Loading…
Reference in New Issue
Block a user