Skip to content

Commit b374459

Browse files
committed
WIP
1 parent 9f4ba34 commit b374459

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

pkg/server/ingestion_worker.go

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,11 @@ func (iw *IngestionWorker) loopConsumeQueue(queue protoqueue.QueueSubscriber) {
5959
}
6060
}()
6161

62-
go func() {
63-
defer iw.logger.Info("stopped consuming events from ingestion queue")
62+
defer iw.logger.Info("stopped consuming events from ingestion queue")
6463

65-
for event := range eventChan {
66-
iw.processEvent(event)
67-
}
68-
}()
64+
for event := range eventChan {
65+
iw.processEvent(event)
66+
}
6967
}
7068

7169
func (iw *IngestionWorker) processEvent(event *tarianpb.Event) {

0 commit comments

Comments
 (0)