mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
fix compilation
This commit is contained in:
parent
c9177c92e5
commit
a6e35e4f68
|
@ -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 {
|
slices.SortFunc(names, func(a, b string) int {
|
||||||
return strings.Compare(a, b) < 0
|
return strings.Compare(a, b)
|
||||||
})
|
})
|
||||||
for _, n := range names {
|
for _, n := range names {
|
||||||
if !visitNamesFn(n) {
|
if !visitNamesFn(n) {
|
||||||
|
|
Loading…
Reference in a new issue