Skip to content
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

Refactor: Simplify SRV lookup logic in federation-util #1175

Merged
merged 4 commits into from
Jul 21, 2020

Conversation

mheinzel
Copy link
Contributor

@mheinzel mheinzel commented Jul 21, 2020

I started with the interface of srvLookup to avoid dealing with tuples of primitive types in federator, but quickly continued refactoring the actual logic itself after seeing bit tuples of Word16 and things like (\(priority', weight', port', domain', _) -> (priority', weight', port', domain')) and srvResult''''.

Probably easiest to convince oneself of the correctness by looking at the commits individually.

Copy link
Member

@jschaul jschaul left a comment

Choose a reason for hiding this comment

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

Looks nicer, thanks!

@mheinzel mheinzel merged commit ad3c38d into develop Jul 21, 2020
@mheinzel mheinzel deleted the mheinzel/jcbi/srv-record-type branch July 21, 2020 14:46
@fisx fisx mentioned this pull request Jul 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants