From 1df0d3dcc0c0840a03a91662f9c3d19cde699f8f Mon Sep 17 00:00:00 2001 From: Christian Haudum Date: Thu, 15 Feb 2024 12:35:39 +0100 Subject: [PATCH] fixup! Make KeyRangeForInstance generic Signed-off-by: Christian Haudum --- pkg/bloomcompactor/bloomcompactor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/bloomcompactor/bloomcompactor.go b/pkg/bloomcompactor/bloomcompactor.go index f866b75f1d16b..d5cba4cc7aa2a 100644 --- a/pkg/bloomcompactor/bloomcompactor.go +++ b/pkg/bloomcompactor/bloomcompactor.go @@ -202,7 +202,7 @@ func (c *Compactor) ownsTenant(tenant string) (v1.FingerprintBounds, bool, error } - keyRange, err := bloomutils.KeyRangeForInstance(c.cfg.Ring.InstanceID, rs.Instances, bloomutils.Range[uint64]{Min: 0, Max: math.MaxUint64}) + keyRange, err := bloomutils.KeyRangeForInstance(c.cfg.Ring.InstanceID, rs.Instances, bloomutils.Uint64Range) if err != nil { return v1.FingerprintBounds{}, false, errors.Wrap(err, "getting instance token range") }