From a6e35e4f685b7713cb863d3f28c85a4b8ae89ab8 Mon Sep 17 00:00:00 2001 From: chrislu Date: Mon, 25 Sep 2023 09:16:33 -0700 Subject: [PATCH] fix compilation --- weed/util/skiplist/name_batch.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/weed/util/skiplist/name_batch.go b/weed/util/skiplist/name_batch.go index aa608d322..0556f48be 100644 --- a/weed/util/skiplist/name_batch.go +++ b/weed/util/skiplist/name_batch.go @@ -41,8 +41,8 @@ func (nb *NameBatch) ListNames(startFrom string, visitNamesFn func(name string) names = append(names, n) } } - slices.SortFunc(names, func(a, b string) bool { - return strings.Compare(a, b) < 0 + slices.SortFunc(names, func(a, b string) int { + return strings.Compare(a, b) }) for _, n := range names { if !visitNamesFn(n) {