Skip to content
This repository has been archived by the owner on May 25, 2023. It is now read-only.

Implement IPSet.Overlaps. #109

Closed
wants to merge 1 commit into from
Closed

Conversation

danderson
Copy link
Member

Closes #81.

Signed-off-by: David Anderson [email protected]

Closes #81.

Signed-off-by: David Anderson <[email protected]>
@bradfitz
Copy link
Contributor

I noted some concurrency concerns in #110. I'm still debating how much the inconsistency bothers me.

I suppose IPSet could use a Mutex since it's not a value type.

@josharian josharian closed this Jan 9, 2021
@josharian josharian deleted the branch master January 9, 2021 01:33
@@ -1719,6 +1724,21 @@ func (s *IPSet) Ranges() []IPRange {
return out
}

// Overlaps reports whether s and o overlap at all.
func (s *IPSet) Overlaps(o *IPSet) bool {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does this overlap with the new code in #124?

@josharian josharian mentioned this pull request Jan 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add IPSet.Overlaps for completeness?
4 participants