Skip to content

Commit

Permalink
Comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mdisibio committed Jan 6, 2025
1 parent cf47807 commit ee9a52b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/blockbuilder/blockbuilder.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ outer:
for iter := fetches.RecordIter(); !iter.Done(); {
rec := iter.Next()

// Initialize if needed
// Initialize on first record
if !init {
end = rec.Timestamp.Add(dur) // When block will be cut
metricPartitionLagSeconds.WithLabelValues(strconv.Itoa(int(partition))).Set(time.Since(rec.Timestamp).Seconds())
Expand Down

0 comments on commit ee9a52b

Please sign in to comment.