mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-01 18:00:46 +01:00
small optimization
This commit is contained in:
1 parent
86b9aa3173
commit
6d8bd1eedc
1 file changed
+2
-2
@@ -62,13 +62,13 @@ func readResolvedChunks(chunks []*filer_pb.FileChunk) (visibles []VisibleInterva
|
||||
}
|
||||
}
|
||||
} else {
|
||||
var isLast bool
|
||||
isLast := true
|
||||
for e := queue.Back(); e != nil; e = e.Prev() {
|
||||
isLast = e.Next() == nil
|
||||
if e.Value.(*Point).ts == point.ts {
|
||||
queue.Remove(e)
|
||||
break
|
||||
}
|
||||
isLast = false
|
||||
}
|
||||
if isLast && lastPoint != nil {
|
||||
visibles = addToVisibles(visibles, prevX, lastPoint, point)
|
||||
|
||||
Reference in new issue
Block a user