diff --git a/docs/docs/CHANGELOG.md b/docs/docs/CHANGELOG.md index 1d479a1..de52231 100644 --- a/docs/docs/CHANGELOG.md +++ b/docs/docs/CHANGELOG.md @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +- Expired records are now properly removed from bbolt databases ([#848](https://github.com/TecharoHQ/anubis/pull/848)). - Fix hanging on service restart ([#853](https://github.com/TecharoHQ/anubis/issues/853)) diff --git a/lib/store/bbolt/bbolt.go b/lib/store/bbolt/bbolt.go index aeac669..8e575c7 100644 --- a/lib/store/bbolt/bbolt.go +++ b/lib/store/bbolt/bbolt.go @@ -142,7 +142,7 @@ func (s *Store) cleanup(ctx context.Context) error { } if now.After(expiry) { - return valueBkt.DeleteBucket(key) + return tx.DeleteBucket(key) } return nil