Skip to content

Commit 553ed73

Browse files
committed
Fix lint warning
Signed-off-by: beorn7 <[email protected]>
1 parent b7a540a commit 553ed73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

prometheus/histogram.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ func makeSparseBuckets(buckets *sync.Map) *dto.SparseBuckets {
480480
count := atomic.LoadUint64(v.(*uint64))
481481
if n == 0 || i-nextI != 0 {
482482
sbs.Span = append(sbs.Span, &dto.SparseBuckets_Span{
483-
Offset: proto.Int(i - nextI),
483+
Offset: proto.Int32(int32(i - nextI)),
484484
Length: proto.Uint32(1),
485485
})
486486
} else {

0 commit comments

Comments
 (0)