This commit is contained in:
parent
0fa58f4d3a
commit
16ef969e29
@ -62,7 +62,7 @@ impl ProvidersStatesActor {
|
|||||||
let keys = self.states.keys().map(|i| *i).collect::<Vec<_>>();
|
let keys = self.states.keys().map(|i| *i).collect::<Vec<_>>();
|
||||||
|
|
||||||
for ip in keys {
|
for ip in keys {
|
||||||
// Remove old attempts
|
// Remove old states
|
||||||
let states = self.states.get_mut(&ip).unwrap();
|
let states = self.states.get_mut(&ip).unwrap();
|
||||||
states.retain(|i| i.expire < time());
|
states.retain(|i| i.expire < time());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user