From e8c733da3fd3448a8abc02127fdcc4f2db4af271 Mon Sep 17 00:00:00 2001 From: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com> Date: Sun, 13 Nov 2022 13:02:07 +0000 Subject: [chore] bump go-cache to v3.1.7 to fix possible issues with zero value keys (#1038) Signed-off-by: kim Signed-off-by: kim --- internal/db/bundb/tombstone.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'internal') diff --git a/internal/db/bundb/tombstone.go b/internal/db/bundb/tombstone.go index 35032f43a..7ce3327a7 100644 --- a/internal/db/bundb/tombstone.go +++ b/internal/db/bundb/tombstone.go @@ -36,9 +36,9 @@ type tombstoneDB struct { func (t *tombstoneDB) init() { // Initialize tombstone result cache - t.cache = result.NewSized([]string{ - "ID", - "URI", + t.cache = result.NewSized([]result.Lookup{ + {Name: "ID"}, + {Name: "URI"}, }, func(t1 *gtsmodel.Tombstone) *gtsmodel.Tombstone { t2 := new(gtsmodel.Tombstone) *t2 = *t1 -- cgit v1.2.3