Skip to content

Commit eca8843

Browse files
Clear limiter map
1 parent 9c4998c commit eca8843

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

proxy/src/auth.rs

+4
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ pub fn start(state: Arc<State>) {
3737
})
3838
.collect();
3939
*state.consumers.write().await = consumers;
40+
41+
// When the watcher is restarted, we reset the limiter because a user
42+
// could have changed the tier on the watcher restart.
43+
state.limiter.write().await.clear();
4044
}
4145
// New port created or updated.
4246
Ok(Some(Event::Applied(crd))) => match crd.status {

0 commit comments

Comments
 (0)