Add authentication from upstream providers #107
@ -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