mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-24 20:47:16 +00:00
save
This commit is contained in:
parent
b91640b1bf
commit
132cc8854f
@ -160,7 +160,6 @@ func (q *QueueWithRetry) ReTry(t *TxTask) {
|
||||
|
||||
// Next - blocks until new task available
|
||||
func (q *QueueWithRetry) Next(ctx context.Context) (*TxTask, bool) {
|
||||
log.Warn("[dbg] before next", "newTasks", q.NewTasksLen(), "retires", q.RetriesLen())
|
||||
task, ok := q.popNoWait()
|
||||
if ok {
|
||||
return task, true
|
||||
@ -331,7 +330,7 @@ func (q *ResultsQueue) Drain(ctx context.Context) error {
|
||||
q.Lock()
|
||||
msg := []string{}
|
||||
for _, t := range *(q.results) {
|
||||
if t.TxNum > 9299153 {
|
||||
if t.TxNum > 9300_000 {
|
||||
msg = append(msg, fmt.Sprintf("%d", t.TxNum))
|
||||
}
|
||||
}
|
||||
|
@ -104,6 +104,9 @@ func (rw *Worker) Run() error {
|
||||
if err := rw.resultCh.Add(rw.ctx, txTask); err != nil {
|
||||
return err
|
||||
}
|
||||
if txTask.TxNum > 9300_000 {
|
||||
log.Warn("[dbg] before next", "newTasks", rw.in.NewTasksLen(), "retires", rw.in.RetriesLen())
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user