1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-01-22 23:05:56 +01:00

Adjust ExponentialBackoff to never stop connecting

This commit is contained in:
Tobias Bieniek 2018-05-27 09:54:52 +02:00
parent 93707884d2
commit 3bbda68adf

View File

@ -37,10 +37,13 @@ impl RedisActor {
pub fn start<S: Into<String>>(addr: S) -> Addr<Unsync, RedisActor> {
let addr = addr.into();
let mut backoff = ExponentialBackoff::default();
backoff.max_elapsed_time = None;
Supervisor::start(|_| RedisActor {
addr: addr,
cell: None,
backoff: ExponentialBackoff::default(),
backoff: backoff,
queue: VecDeque::new(),
})
}