mirror of
https://github.com/actix/actix-extras.git
synced 2025-01-22 14:55:56 +01:00
Update actix-redis to current state (beta) of actix (#210)
This commit is contained in:
parent
64acd3229f
commit
e636af039a
@ -32,7 +32,7 @@ web = [
|
||||
actix = { version = "0.12.0", default-features = false }
|
||||
actix-rt = { version = "2.1", default-features = false }
|
||||
actix-service = "2.0.0"
|
||||
actix-tls = { version = "3.0.0-beta.7", default-features = false, features = ["connect"] }
|
||||
actix-tls = { version = "3.0.0-rc.1", default-features = false, features = ["connect"] }
|
||||
|
||||
log = "0.4.6"
|
||||
backoff = "0.2.1"
|
||||
|
@ -4,7 +4,7 @@ use std::io;
|
||||
use actix::prelude::*;
|
||||
use actix_rt::net::TcpStream;
|
||||
use actix_service::boxed::{service, BoxService};
|
||||
use actix_tls::connect::{default_connector, Connect, ConnectError, Connection};
|
||||
use actix_tls::connect::{ConnectError, ConnectInfo as Connect, Connection, Connector};
|
||||
use backoff::backoff::Backoff;
|
||||
use backoff::ExponentialBackoff;
|
||||
use log::{error, info, warn};
|
||||
@ -45,7 +45,7 @@ impl RedisActor {
|
||||
|
||||
Supervisor::start(|_| RedisActor {
|
||||
addr,
|
||||
connector: service(default_connector()),
|
||||
connector: service(Connector::default().service()),
|
||||
cell: None,
|
||||
backoff,
|
||||
queue: VecDeque::new(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user