diff options
| author | 2022-11-13 13:02:07 +0000 | |
|---|---|---|
| committer | 2022-11-13 14:02:07 +0100 | |
| commit | e8c733da3fd3448a8abc02127fdcc4f2db4af271 (patch) | |
| tree | cc85a49e8aabc0202e30103a403cef2044b07f2d /internal/db | |
| parent | [documentation] Change default log path (#1030) (diff) | |
| download | gotosocial-e8c733da3fd3448a8abc02127fdcc4f2db4af271.tar.xz | |
[chore] bump go-cache to v3.1.7 to fix possible issues with zero value keys (#1038)
Signed-off-by: kim <grufwub@gmail.com>
Signed-off-by: kim <grufwub@gmail.com>
Diffstat (limited to 'internal/db')
| -rw-r--r-- | internal/db/bundb/tombstone.go | 6 | 
1 files changed, 3 insertions, 3 deletions
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  | 
