Browse Source

fix compilation

pull/4869/head
chrislu 1 year ago
parent
commit
a6e35e4f68
  1. 4
      weed/util/skiplist/name_batch.go

4
weed/util/skiplist/name_batch.go

@ -41,8 +41,8 @@ func (nb *NameBatch) ListNames(startFrom string, visitNamesFn func(name string)
names = append(names, n) 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 { for _, n := range names {
if !visitNamesFn(n) { if !visitNamesFn(n) {

Loading…
Cancel
Save