Skip to content

Commit cda4c6a

Browse files
committed
fix termination condition
1 parent 4c26372 commit cda4c6a

File tree

2 files changed

+2
-2
lines changed
  • pkg/coordinator/tasks

2 files changed

+2
-2
lines changed

pkg/coordinator/tasks/tx_pool_latency_analysis/task.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ func (t *Task) Execute(ctx context.Context) error {
253253
}
254254
}
255255

256-
if receivedEvents == totNumberOfTxes {
256+
if receivedEvents >= totNumberOfTxes {
257257
t.logger.Infof("Reading of p2p events finished")
258258
return
259259
}

pkg/coordinator/tasks/tx_pool_throughput_analysis/task.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ func (t *Task) Execute(ctx context.Context) error {
252252
}
253253
}
254254

255-
if receivedEvents == totNumberOfTxes {
255+
if receivedEvents >= totNumberOfTxes {
256256
t.logger.Infof("Reading of p2p events finished")
257257
return
258258
}

0 commit comments

Comments
 (0)