mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-25 21:17:16 +00:00
save
This commit is contained in:
parent
b8d974028d
commit
f7bbbb765f
@ -326,6 +326,11 @@ func (q *ResultsQueue) Drain(ctx context.Context) error {
|
|||||||
// q.drainNoBlock(nil)
|
// q.drainNoBlock(nil)
|
||||||
// return nil
|
// return nil
|
||||||
//}
|
//}
|
||||||
|
q.Lock()
|
||||||
|
for _, t := range *(q.results) {
|
||||||
|
log.Warn("[dbg] before drain resultqueue", "txnum", t.TxNum)
|
||||||
|
}
|
||||||
|
q.Unlock()
|
||||||
|
|
||||||
select {
|
select {
|
||||||
case <-ctx.Done():
|
case <-ctx.Done():
|
||||||
|
@ -229,8 +229,6 @@ func ExecV3(ctx context.Context,
|
|||||||
var lastBlockNum uint64
|
var lastBlockNum uint64
|
||||||
|
|
||||||
for outputTxNum.Load() <= maxTxNum {
|
for outputTxNum.Load() <= maxTxNum {
|
||||||
|
|
||||||
log.Warn("[dbg] before drain", "outputTxNum.Load()", outputTxNum.Load(), "maxTxNum", maxTxNum, "rws.ResultChLen()", rws.ResultChLen(), "rws.Len", rws.Len())
|
|
||||||
if err := rws.Drain(ctx); err != nil {
|
if err := rws.Drain(ctx); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user