From fcd495c80b4c8fe6a28e52a6c5bae736eb3f7e03 Mon Sep 17 00:00:00 2001 From: Christian Haudum Date: Thu, 4 Apr 2024 21:29:18 +0200 Subject: [PATCH] Make format Signed-off-by: Christian Haudum --- pkg/bloomgateway/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/bloomgateway/client.go b/pkg/bloomgateway/client.go index 2f437cd7e28dd..53a57b2a51d86 100644 --- a/pkg/bloomgateway/client.go +++ b/pkg/bloomgateway/client.go @@ -231,7 +231,7 @@ func (c *GatewayClient) FilterChunks(ctx context.Context, tenant string, from, t // overlap on instances to the left and right of the range. firstFp, lastFp := groups[0].Fingerprint, groups[len(groups)-1].Fingerprint pctKeyspace := float64(lastFp-firstFp) / float64(math.MaxUint64) - pctInstances := float64(len(servers)) / float64(max(1,len(c.pool.Addrs()))) + pctInstances := float64(len(servers)) / float64(max(1, len(c.pool.Addrs()))) cacheLocalityScore := pctKeyspace / pctInstances c.metrics.cacheLocalityScore.Observe(cacheLocalityScore) }