commit af97d6bb7e13616e70f8f4ce616a9072854a01a9
parent 26683b3d49beea9b1f0e8f78df4720285d4c0825
Author: tobi <31960611+tsmethurst@users.noreply.github.com>
Date: Sat, 16 Apr 2022 12:56:41 +0200
[bugfix] Use background ctx for domain block side effects (#457)
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git 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)