From af97d6bb7e13616e70f8f4ce616a9072854a01a9 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Sat, 16 Apr 2022 12:56:41 +0200 Subject: [PATCH] [bugfix] Use background ctx for domain block side effects (#457) --- internal/processing/admin/createdomainblock.go | 3 +-- 1 file changed, 1 insertion(+), 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)