Skip to content

Commit b7a399f

Browse files
committed
Logs
1 parent 038fb00 commit b7a399f

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

internal/orchestrator/poller.go

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -312,15 +312,8 @@ func (p *Poller) getNextBlockRange(ctx context.Context) ([]*big.Int, error) {
312312
lastRequestedBlock := new(big.Int).Set(p.lastRequestedBlock)
313313
p.lastRequestedBlockMutex.RUnlock()
314314

315-
log.Debug().
316-
Str("last_pending_block", lastPendingFetchBlock.String()).
317-
Str("last_polled_block", lastPolledBlock.String()).
318-
Str("last_requested_block", lastRequestedBlock.String()).
319-
Msgf("GetNextBlockRange for poller workers")
320-
321315
startBlock := new(big.Int).Add(lastPendingFetchBlock, big.NewInt(1))
322316
if startBlock.Cmp(latestBlock) > 0 {
323-
log.Debug().Msgf("Start block %s is greater than latest block %s, skipping", startBlock, latestBlock)
324317
return nil, ErrNoNewBlocks
325318
}
326319

@@ -330,6 +323,12 @@ func (p *Poller) getNextBlockRange(ctx context.Context) ([]*big.Int, error) {
330323
return nil, nil
331324
}
332325

326+
log.Debug().
327+
Str("last_pending_block", lastPendingFetchBlock.String()).
328+
Str("last_polled_block", lastPolledBlock.String()).
329+
Str("last_requested_block", lastRequestedBlock.String()).
330+
Msgf("GetNextBlockRange for poller workers")
331+
333332
p.lastPendingFetchBlockMutex.Lock()
334333
p.lastPendingFetchBlock = new(big.Int).Set(endBlock)
335334
p.lastPendingFetchBlockMutex.Unlock()

0 commit comments

Comments
 (0)