fix broken bbolt database cleanup process (#848) (#848)

Closes #820, was broken since #761
This commit is contained in:
Nicholas Sherlock 2025-07-19 05:51:32 +12:00 committed by GitHub
parent d6298adc6d
commit 300720f030
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
<!-- This changes the project to: -->
- 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))

View File

@ -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