From baf933cb9f3e1053bdb61b90d7027efe9fad1bc2 Mon Sep 17 00:00:00 2001 From: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com> Date: Wed, 1 Mar 2023 18:26:53 +0000 Subject: [chore] move client/federator workerpools to Workers{} (#1575) * replace concurrency worker pools with base models in State.Workers, update code and tests accordingly * improve code comment * change back testrig default log level * un-comment-out TestAnnounceTwice() and fix --------- Signed-off-by: kim Reviewed-by: tobi --- internal/processing/app.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/processing/app.go') diff --git a/internal/processing/app.go b/internal/processing/app.go index f2a938b22..e4cda5a43 100644 --- a/internal/processing/app.go +++ b/internal/processing/app.go @@ -62,7 +62,7 @@ func (p *Processor) AppCreate(ctx context.Context, authed *oauth.Auth, form *api } // chuck it in the db - if err := p.db.Put(ctx, app); err != nil { + if err := p.state.DB.Put(ctx, app); err != nil { return nil, gtserror.NewErrorInternalError(err) } @@ -76,7 +76,7 @@ func (p *Processor) AppCreate(ctx context.Context, authed *oauth.Auth, form *api } // chuck it in the db - if err := p.db.Put(ctx, oc); err != nil { + if err := p.state.DB.Put(ctx, oc); err != nil { return nil, gtserror.NewErrorInternalError(err) } -- cgit v1.2.3