From 6fa5b8e4e0f1852e077a798cdf314311cf564714 Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Sun, 6 Jul 2025 01:19:44 +0000 Subject: [PATCH] fix(lib/store/bbolt): run cleanup every hour instead of every 5 minutes (#762) Signed-off-by: Xe Iaso --- docs/docs/CHANGELOG.md | 1 + lib/store/bbolt/bbolt.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/docs/CHANGELOG.md b/docs/docs/CHANGELOG.md index df1224b..e53720d 100644 --- a/docs/docs/CHANGELOG.md +++ b/docs/docs/CHANGELOG.md @@ -28,6 +28,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Add option for forcing a specific language ([#742](https://github.com/TecharoHQ/anubis/pull/742)) - Add translation for Turkish language ([#751](https://github.com/TecharoHQ/anubis/pull/751)) - Allow [Common Crawl](https://commoncrawl.org/) by default so scrapers have less incentive to scrape +- The [bbolt storage backend](./admin/policies.mdx#bbolt) now runs its cleanup every hour instead of every five minutes. ### Potentially breaking changes diff --git a/lib/store/bbolt/bbolt.go b/lib/store/bbolt/bbolt.go index f415b15..aeac669 100644 --- a/lib/store/bbolt/bbolt.go +++ b/lib/store/bbolt/bbolt.go @@ -151,7 +151,7 @@ func (s *Store) cleanup(ctx context.Context) error { } func (s *Store) cleanupThread(ctx context.Context) { - t := time.NewTicker(5 * time.Minute) + t := time.NewTicker(time.Hour) defer t.Stop() for {