mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 11:38:02 +00:00
backport of commit 0ab8cfdff6 (#24138)
Co-authored-by: davidadeleon <56207066+davidadeleon@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
06b5ffda11
commit
13d458f3af
3
changelog/24108.txt
Normal file
3
changelog/24108.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
```release-note:bug
|
||||
core/quotas: Close rate-limit blocked client purge goroutines when sealing
|
||||
```
|
||||
@@ -814,6 +814,13 @@ func (m *Manager) resetCache() error {
|
||||
}
|
||||
if quota != nil {
|
||||
rlq := quota.(*RateLimitQuota)
|
||||
|
||||
// Cancel the quota's purgeBlockedClients goroutine
|
||||
err = rlq.close(context.Background())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
err = rlq.store.Close(context.Background())
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user