diff options
author | 2022-04-16 12:56:41 +0200 | |
---|---|---|
committer | 2022-04-16 12:56:41 +0200 | |
commit | af97d6bb7e13616e70f8f4ce616a9072854a01a9 (patch) | |
tree | 6a4a12737943be9278eec8b6a8ea762953f478db | |
parent | [feature] Web profile pages for accounts (#449) (diff) | |
download | gotosocial-af97d6bb7e13616e70f8f4ce616a9072854a01a9.tar.xz |
[bugfix] Use background ctx for domain block side effects (#457)
-rw-r--r-- | internal/processing/admin/createdomainblock.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/internal/processing/admin/createdomainblock.go b/internal/processing/admin/createdomainblock.go index ac498f437..a469cf6e3 100644 --- a/internal/processing/admin/createdomainblock.go +++ b/internal/processing/admin/createdomainblock.go @@ -68,9 +68,8 @@ func (p *processor) DomainBlockCreate(ctx context.Context, account *gtsmodel.Acc return nil, gtserror.NewErrorInternalError(fmt.Errorf("DomainBlockCreate: db error putting new domain block %s: %s", domain, err)) } } - // process the side effects of the domain block asynchronously since it might take a while - go p.initiateDomainBlockSideEffects(ctx, account, domainBlock) // TODO: add this to a queuing system so it can retry/resume + go p.initiateDomainBlockSideEffects(context.Background(), account, domainBlock) // TODO: add this to a queuing system so it can retry/resume } apiDomainBlock, err := p.tc.DomainBlockToAPIDomainBlock(ctx, domainBlock, false) |