From 729c52ab7ac08696ce447bd47aac80c6d14a7ada Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Sun, 6 Jul 2025 01:10:44 +0000 Subject: [PATCH] fix(lib/store/bbolt): gracefully handle the obsolete anubis bucket in cleanup Signed-off-by: Xe Iaso --- lib/store/bbolt/bbolt.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/store/bbolt/bbolt.go b/lib/store/bbolt/bbolt.go index 8d281dd..f415b15 100644 --- a/lib/store/bbolt/bbolt.go +++ b/lib/store/bbolt/bbolt.go @@ -132,7 +132,8 @@ func (s *Store) cleanup(ctx context.Context) error { expiryStr := valueBkt.Get([]byte("expiry")) if expiryStr == nil { - return fmt.Errorf("[unexpected] %w: %q (expiry is nil)", store.ErrNotFound, string(key)) + slog.Warn("while running cleanup, expiry is not set somehow, file a bug?", "key", string(key)) + return nil } expiry, err = time.Parse(time.RFC3339Nano, string(expiryStr))