Skip to content

Commit d02b6e0

Browse files
Apply suggestions from code review
Co-authored-by: Arthur Silva Sens <[email protected]> Signed-off-by: Shivanth MP <[email protected]>
1 parent 1eea864 commit d02b6e0

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

prometheus/histogram.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1844,9 +1844,7 @@ type constNativeHistogram struct {
18441844
nativeHistogramSchema int32
18451845
nativeHistogramZeroThreshold float64
18461846
nativeHistogramMaxZeroThreshold float64
1847-
nativeHistogramMaxBuckets uint32
1848-
nativeHistogramMinResetDuration time.Duration
1849-
timeStamp time.Time
1847+
createdTimestamp time.Time
18501848
nativeExemplars []*dto.Exemplar
18511849

18521850
positiveBuckets map[int]int64
@@ -1858,9 +1856,9 @@ func NewconstNativeHistogram(desc *Desc, count uint64, sum float64, postiveBucke
18581856
labelPairs []*dto.LabelPair, nativeHistogramSchema int32, nativeHistogramZeroThreshold float64,
18591857
nativeHistogramMaxZeroThreshold float64, nativeHistogramMaxBuckets uint32,
18601858
nativeHistogramMinResetDuration time.Duration,
1861-
timeStamp time.Time,
1859+
createdTimestamp time.Time,
18621860
nativeExemplars []*dto.Exemplar,
1863-
) constNativeHistogram {
1861+
) (constNativeHistogram, error) {
18641862
return constNativeHistogram{
18651863
desc: desc,
18661864
count: count,

0 commit comments

Comments
 (0)