mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-23 04:03:35 +08:00
fix compilation
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user