Skip to content

Commit 616c3b1

Browse files
fix(tx_pool_throughput_analysis): extend timeout for reading transaction messages from 10 to 180 seconds to improve reliability
1 parent 9a9d79f commit 616c3b1

File tree

1 file changed

+3
-3
lines changed
  • pkg/coordinator/tasks/tx_pool_throughput_analysis

1 file changed

+3
-3
lines changed

pkg/coordinator/tasks/tx_pool_throughput_analysis/task.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ func (t *Task) Execute(ctx context.Context) error {
181181
return nil
182182
}
183183

184-
// Add a timeout of 10 seconds for reading transaction messages
184+
// Add a timeout of 180 seconds for reading transaction messages
185185
readChan := make(chan struct {
186186
txs *eth.TransactionsPacket
187187
err error
@@ -203,8 +203,8 @@ func (t *Task) Execute(ctx context.Context) error {
203203
return nil
204204
}
205205
gotTx += len(*result.txs)
206-
case <-time.After(10 * time.Second):
207-
t.logger.Errorf("Timeout after 10 seconds while reading transaction messages")
206+
case <-time.After(180 * time.Second):
207+
t.logger.Errorf("Timeout after 180 seconds while reading transaction messages")
208208
t.ctx.SetResult(types.TaskResultFailure)
209209
return nil
210210
}

0 commit comments

Comments
 (0)