From 6143bb98798f17fec3fe7bd4993d46d908ddaeba Mon Sep 17 00:00:00 2001 From: tobi Date: Sun, 6 Apr 2025 12:05:40 +0200 Subject: [PATCH] remove unused cache fields --- internal/cache/db.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/internal/cache/db.go b/internal/cache/db.go index 659a54210..82cd9ac5f 100644 --- a/internal/cache/db.go +++ b/internal/cache/db.go @@ -304,18 +304,10 @@ func (c *Caches) initAccount() { c.DB.Account.Init(structr.CacheConfig[*gtsmodel.Account]{ Indices: []structr.IndexConfig{ - // Unique fields. {Fields: "ID"}, {Fields: "URI"}, {Fields: "PublicKeyURI"}, {Fields: "Username,Domain", AllowZero: true}, - - // Potentially non-unique fields. - {Fields: "URL", Multiple: true}, - {Fields: "InboxURI", Multiple: true}, - {Fields: "OutboxURI", Multiple: true}, - {Fields: "FollowersURI", Multiple: true}, - {Fields: "FollowingURI", Multiple: true}, }, MaxSize: cap, IgnoreErr: ignoreErrors,