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

Use map helpers #2546

Merged
merged 3 commits into from May 29, 2017
Merged

Use map helpers #2546

merged 3 commits into from May 29, 2017

Conversation

rade
Copy link
Member

@rade rade commented May 29, 2017

Refactor various piece of code that use ps.Map to use the functions in map_helpers.go.

@rade rade requested a review from 2opremio May 29, 2017 12:54
@rade
Copy link
Member Author

rade commented May 29, 2017

Q: NodeSet.ForEach processes entries in sorted order. Is that actually necessary?

@2opremio
Copy link
Contributor

2opremio commented May 29, 2017

NodeSet.ForEach processes entries in sorted order. Is that actually necessary?

I recall this was done to present a stable ordering in the serialized JSON. I don’t remember any other reasons. So, we could simply order the keys in toIntermediate and stop ordering them for the rest

@2opremio
Copy link
Contributor

Much cleaner, thanks

@rade rade merged commit e2bccd1 into master May 29, 2017
@rade rade deleted the use_map_helpers branch July 5, 2017 13:08
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