Skip to content

Commit 6fa127a

Browse files
committed
remove: agg subscribe to v2 in different goroutine, now subscribes both together
1 parent 5a5f4f8 commit 6fa127a

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

aggregator/cmd/main.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,18 +50,13 @@ func aggregatorMain(ctx *cli.Context) error {
5050
}
5151

5252
// Listen for new task created in the ServiceManager contract in a separate goroutine
53+
// Both V1 and V2 subscriptions:
5354
go func() {
5455
listenErr := aggregator.SubscribeToNewTasks()
5556
if listenErr != nil {
5657
aggregatorConfig.BaseConfig.Logger.Fatal("Error subscribing for new tasks", "err", listenErr)
5758
}
5859
}()
59-
go func() {
60-
listenErr := aggregator.SubscribeToNewTasksV2()
61-
if listenErr != nil {
62-
aggregatorConfig.BaseConfig.Logger.Fatal("Error subscribing for new tasks V2", "err", listenErr)
63-
}
64-
}()
6560

6661
err = aggregator.Start(context.Background())
6762
if err != nil {

0 commit comments

Comments
 (0)