-
Notifications
You must be signed in to change notification settings - Fork 874
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multi-cursor components: queue slice #2996
Conversation
|
||
for idx, iterator := range iterators[:len(iterators)-1] { | ||
nextIterator := iterators[idx+1] | ||
if iterator.Range().ExclusiveMax.CompareTo(nextIterator.Range().InclusiveMin) >= 0 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this be > 0
instead of >= 0
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since iterator doesn't have predicate, two iterators should be merged together if one's max equals the other's min. As iterator.CanMerge() returns true in this case, I think the check should panic when we found they're not merged together. I can update the panic message to be more specific.
What changed?
Why?
How did you test it?
Potential risks
Is hotfix candidate?