@@ -97,7 +97,9 @@ func NewService(
|
|||||||
func (s *Service) Run(ctx context.Context, presenterConfigFunc EmailPresenterConfigFunc) error {
|
func (s *Service) Run(ctx context.Context, presenterConfigFunc EmailPresenterConfigFunc) error {
|
||||||
g := errgroup.Group{}
|
g := errgroup.Group{}
|
||||||
|
|
||||||
sealingWorkerCtx, stopSealingWorker := context.WithCancel(context.Background())
|
nonCancelableCtx := context.WithoutCancel(ctx)
|
||||||
|
|
||||||
|
sealingWorkerCtx, stopSealingWorker := context.WithCancel(nonCancelableCtx)
|
||||||
sealingWorker := NewSealingWorker(
|
sealingWorker := NewSealingWorker(
|
||||||
s.pg,
|
s.pg,
|
||||||
s.fileManager,
|
s.fileManager,
|
||||||
@@ -106,7 +108,7 @@ func (s *Service) Run(ctx context.Context, presenterConfigFunc EmailPresenterCon
|
|||||||
)
|
)
|
||||||
g.Go(func() error { return sealingWorker.Run(sealingWorkerCtx) })
|
g.Go(func() error { return sealingWorker.Run(sealingWorkerCtx) })
|
||||||
|
|
||||||
certWorkerCtx, stopCertWorker := context.WithCancel(context.Background())
|
certWorkerCtx, stopCertWorker := context.WithCancel(nonCancelableCtx)
|
||||||
certWorker := NewCompletionCertificateWorker(
|
certWorker := NewCompletionCertificateWorker(
|
||||||
s.pg,
|
s.pg,
|
||||||
s.fileManager,
|
s.fileManager,
|
||||||
|
|||||||
Reference in New Issue
Block a user