diff options
author | 2024-04-15 14:22:21 +0100 | |
---|---|---|
committer | 2024-04-15 14:22:21 +0100 | |
commit | f79d50b9b26590b6d2468aeb41f0846272e08d1a (patch) | |
tree | 196b9bfaf8ad6fce782c2130633cfb5c97cbd31a /internal/db/bundb/admin.go | |
parent | [chore] Turn `accounts-registration-open` false by default (#2839) (diff) | |
download | gotosocial-f79d50b9b26590b6d2468aeb41f0846272e08d1a.tar.xz |
[performance] cached oauth database types (#2838)
* update token + client code to use struct caches
* add code comments
* slight tweak to default mem ratios
* fix envparsing
* add appropriate invalidate hooks
* update the tokenstore sweeping function to rely on caches
* update to use PutClient()
* add ClientID to list of token struct indices
Diffstat (limited to 'internal/db/bundb/admin.go')
-rw-r--r-- | internal/db/bundb/admin.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/db/bundb/admin.go b/internal/db/bundb/admin.go index e52467b9b..e9191b7c7 100644 --- a/internal/db/bundb/admin.go +++ b/internal/db/bundb/admin.go @@ -397,7 +397,7 @@ func (a *adminDB) CreateInstanceApplication(ctx context.Context) error { } // Store it. - return a.state.DB.Put(ctx, oc) + return a.state.DB.PutClient(ctx, oc) } func (a *adminDB) GetInstanceApplication(ctx context.Context) (*gtsmodel.Application, error) { |