Skip to content

Commit

Permalink
Update indexer.go
Browse files Browse the repository at this point in the history
  • Loading branch information
nautsimon committed Sep 28, 2023
1 parent 0fb4d0e commit 3e4e1a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/scribe/service/indexer/indexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ func (x *Indexer) Index(parentCtx context.Context, startHeight uint64, endHeight
// Only update last indexed if all logs from the last block have been processed to prevent premature
// updates of last indexed. Prevents having to lag a block behind on downstream dependencies (agents).
if lastBlockSeen < log.BlockNumber {
err = x.saveLastIndexed(storeCtx, log.BlockNumber)
err = x.saveLastIndexed(storeCtx, lastBlockSeen)
if err != nil {
logger.ReportIndexerError(err, x.indexerConfig, logger.StoreError)
return fmt.Errorf("could not store last indexed: %w", err)
Expand Down

0 comments on commit 3e4e1a0

Please sign in to comment.