mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-28 13:13:32 -06:00
[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>
This commit is contained in:
parent
f7cde0dfa7
commit
e8c733da3f
6 changed files with 149 additions and 118 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue