From 9b31adc4e8f695c38accc780fa39511ecb996592 Mon Sep 17 00:00:00 2001 From: Bryan Boreham Date: Sat, 1 Oct 2022 11:55:40 -0500 Subject: [PATCH] tsdb: fix up sort call with faster slices.Sort (#11380) This call was added by PR #11075 merged before #11318 which changed all similar calls to `sort.Sort` into a faster one. Signed-off-by: Bryan Boreham Signed-off-by: Bryan Boreham --- tsdb/block.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsdb/block.go b/tsdb/block.go index 8dbeff16e..b06f0940a 100644 --- a/tsdb/block.go +++ b/tsdb/block.go @@ -198,7 +198,7 @@ func (bm *BlockMetaCompaction) SetOutOfOrder() { return } bm.Hints = append(bm.Hints, CompactionHintFromOutOfOrder) - sort.Strings(bm.Hints) + slices.Sort(bm.Hints) } func (bm *BlockMetaCompaction) FromOutOfOrder() bool {