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:
parent
93707884d2
commit
3bbda68adf
@ -37,10 +37,13 @@ impl RedisActor {
|
|||||||
pub fn start<S: Into<String>>(addr: S) -> Addr<Unsync, RedisActor> {
|
pub fn start<S: Into<String>>(addr: S) -> Addr<Unsync, RedisActor> {
|
||||||
let addr = addr.into();
|
let addr = addr.into();
|
||||||
|
|
||||||
|
let mut backoff = ExponentialBackoff::default();
|
||||||
|
backoff.max_elapsed_time = None;
|
||||||
|
|
||||||
Supervisor::start(|_| RedisActor {
|
Supervisor::start(|_| RedisActor {
|
||||||
addr: addr,
|
addr: addr,
|
||||||
cell: None,
|
cell: None,
|
||||||
backoff: ExponentialBackoff::default(),
|
backoff: backoff,
|
||||||
queue: VecDeque::new(),
|
queue: VecDeque::new(),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user