diff options
author | 2024-04-15 14:22:21 +0100 | |
---|---|---|
committer | 2024-04-15 14:22:21 +0100 | |
commit | f79d50b9b26590b6d2468aeb41f0846272e08d1a (patch) | |
tree | 196b9bfaf8ad6fce782c2130633cfb5c97cbd31a /internal/processing | |
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/processing')
-rw-r--r-- | internal/processing/app.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/processing/app.go b/internal/processing/app.go index eef4fae0d..d492b3bc4 100644 --- a/internal/processing/app.go +++ b/internal/processing/app.go @@ -75,7 +75,7 @@ func (p *Processor) AppCreate(ctx context.Context, authed *oauth.Auth, form *api } // chuck it in the db - if err := p.state.DB.Put(ctx, oc); err != nil { + if err := p.state.DB.PutClient(ctx, oc); err != nil { return nil, gtserror.NewErrorInternalError(err) } |