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> {
|
||||
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(),
|
||||
})
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user