fix(decaymap): scratch that, once every 15 minutes

Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
Xe Iaso
2025-12-28 18:31:38 -05:00
parent a75d9066fd
commit f56c242167
2 changed files with 2 additions and 1 deletions

View File

@@ -151,7 +151,7 @@ func (m *Impl[K, V]) Close() {
func (m *Impl[K, V]) cleanupWorker() {
defer m.wg.Done()
batch := make([]deleteReq[K], 0, 64)
ticker := time.NewTicker(time.Minute)
ticker := time.NewTicker(15 * time.Minute)
defer ticker.Stop()
flush := func() {

View File

@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
- The memory store now decays values every 15 minutes instead of every 10 milliseconds.
- Add Polish locale ([#1292](https://github.com/TecharoHQ/anubis/pull/1309))
<!-- This changes the project to: -->