From 57f268870c8cc964077a117edab772702ad770fe Mon Sep 17 00:00:00 2001 From: kim Date: Mon, 16 Sep 2024 17:12:06 +0100 Subject: [PATCH] make cache invalidation comments match what's actually happening --- internal/db/bundb/tag.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/db/bundb/tag.go b/internal/db/bundb/tag.go index 3da939f38..6c3d870f6 100644 --- a/internal/db/bundb/tag.go +++ b/internal/db/bundb/tag.go @@ -215,7 +215,7 @@ func (t *tagDB) PutFollowedTag(ctx context.Context, accountID string, tagID stri return nil } - // If we deleted anything, invalidate caches. + // We updated something, invalidate caches. t.state.Caches.DB.FollowingTagIDs.Invalidate( // tag IDs followed by account @@ -246,7 +246,7 @@ func (t *tagDB) DeleteFollowedTag(ctx context.Context, accountID string, tagID s return nil } - // If we deleted anything, invalidate caches. + // We deleted something, invalidate caches. t.state.Caches.DB.FollowingTagIDs.Invalidate( // tag IDs followed by account