Fix lint warning

Signed-off-by: beorn7 <beorn@grafana.com>
This commit is contained in:
beorn7 2021-05-03 16:58:07 +02:00
parent b7a540a1b2
commit 553ed73917
1 changed files with 1 additions and 1 deletions

View File

@ -480,7 +480,7 @@ func makeSparseBuckets(buckets *sync.Map) *dto.SparseBuckets {
count := atomic.LoadUint64(v.(*uint64)) count := atomic.LoadUint64(v.(*uint64))
if n == 0 || i-nextI != 0 { if n == 0 || i-nextI != 0 {
sbs.Span = append(sbs.Span, &dto.SparseBuckets_Span{ sbs.Span = append(sbs.Span, &dto.SparseBuckets_Span{
Offset: proto.Int(i - nextI), Offset: proto.Int32(int32(i - nextI)),
Length: proto.Uint32(1), Length: proto.Uint32(1),
}) })
} else { } else {