Skip to content

Commit

Permalink
Fix batch forced save time
Browse files Browse the repository at this point in the history
  • Loading branch information
Tetrergeru committed Apr 25, 2024
1 parent e885d45 commit ba4ad44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion filter/matched_metrics/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func (matcher *MetricsMatcher) receiveBatch(metrics <-chan *moira.MatchedMetric)
case <-batchTimer.C:
batchedMetrics <- batch
}
batchTimer.Reset(time.Second)
batchTimer.Reset(matcher.batchForcedSaveTimeout)
}
}()
return batchedMetrics
Expand Down

0 comments on commit ba4ad44

Please sign in to comment.