Skip to content

Commit

Permalink
fix block count
Browse files Browse the repository at this point in the history
  • Loading branch information
billettc committed Feb 8, 2024
1 parent bca0310 commit dff287f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sinker/sinker.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ func (s *KVSinker) handleBlockScopedData(ctx context.Context, data *pbsubstreams
}

blockRef := cursor.Block()
BlockCount.Inc()
if blockRef.Num()%s.batchBlockModulo(isLive) == 0 {
flushStart := time.Now()
count, err := s.operationDB.Flush(ctx, cursor)
Expand Down

0 comments on commit dff287f

Please sign in to comment.