diff options
| author | chrislu <chris.lu@gmail.com> | 2023-09-18 16:06:41 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2023-09-18 16:06:41 -0700 |
| commit | 2e5aa06026750c99ea283181974d2ccfe5eb0468 (patch) | |
| tree | 7360ecafeb9f8c81e46244b5da9b07e2b74f3fff /weed/filer/stream.go | |
| parent | 4d414f54a224142f3f4d934f4af3b5dceb6fec6b (diff) | |
| parent | a04bd4d26fb355fff6447dd8e508fa54f3c6c180 (diff) | |
| download | seaweedfs-2e5aa06026750c99ea283181974d2ccfe5eb0468.tar.xz seaweedfs-2e5aa06026750c99ea283181974d2ccfe5eb0468.zip | |
Merge branch 'master' of https://github.com/seaweedfs/seaweedfs
Diffstat (limited to 'weed/filer/stream.go')
| -rw-r--r-- | weed/filer/stream.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/weed/filer/stream.go b/weed/filer/stream.go index 9e3bb5f76..eb8f0f3a1 100644 --- a/weed/filer/stream.go +++ b/weed/filer/stream.go @@ -45,11 +45,11 @@ func isSameChunks(a, b []*filer_pb.FileChunk) bool { if len(a) != len(b) { return false } - slices.SortFunc(a, func(i, j *filer_pb.FileChunk) bool { - return strings.Compare(i.ETag, j.ETag) < 0 + slices.SortFunc(a, func(i, j *filer_pb.FileChunk) int { + return strings.Compare(i.ETag, j.ETag) }) - slices.SortFunc(b, func(i, j *filer_pb.FileChunk) bool { - return strings.Compare(i.ETag, j.ETag) < 0 + slices.SortFunc(b, func(i, j *filer_pb.FileChunk) int { + return strings.Compare(i.ETag, j.ETag) }) for i := 0; i < len(a); i++ { if a[i].ETag != b[i].ETag { |
