postprocessing event workers

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
Jörn Friedrich Dreyer
2024-10-22 11:26:50 +02:00
parent d6958f3a3e
commit 91dc7699d8
4 changed files with 10 additions and 4 deletions
@@ -66,7 +66,7 @@ func NewPostprocessingService(ctx context.Context, stream events.Stream, logger
// Run to fulfil Runner interface
func (pps *PostprocessingService) Run() error {
// Spawn workers that'll concurrently work the queue
for i := 0; i < 3; i++ {
for i := 0; i < pps.c.Workers; i++ {
go (func() {
for e := range pps.events {
err := pps.processEvent(e)