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

keystore, ethash, eth, miner, rpc, whisperv6: Addresses tech of now defunct vendored set. #16873

Merged
merged 2 commits into from
Jul 16, 2018

Conversation

deckarep
Copy link
Contributor

@deckarep deckarep commented Jun 3, 2018

This PR addresses some tech-debt by removing a set implementation that is no longer supported and has been archived on github: https://github.com/fatih/set

In favor of this well-supported and well-adopted version: https://github.com/deckarep/golang-set

This PR removes the now defunct: gopkg.in/fatih/set.v0 with a different but well-supported implementation and includes significantly more unit-tests and benchmarks.

This version has a slightly different API but is feature complete and supports both thread-safe and non-threadsafe implementations of a Set backed by an interface.

This alternative implementation is currently used in several high profile Go libraries. Notably: Docker and Kubernetes.

  • New set implementation added to /vendor and lock file
  • Old set implementation removed from /vendor and lock file
  • Unit tests updated

@GitCop
Copy link

GitCop commented Jun 3, 2018

Thank you for your contribution! Your commits seem to not adhere to the repository coding standards

  • Commit: ebbab0f0b1f462d69f0faa5641a23d2872fab525
  • Commit subjects should be kept under 100 characters

Please check the contribution guidelines for more details.


This message was auto-generated by https://gitcop.com

@deckarep deckarep force-pushed the updating-vendored-set-lib branch from ebbab0f to d317e9b Compare June 3, 2018 22:40
@deckarep
Copy link
Contributor Author

deckarep commented Jun 4, 2018

I'll follow up on fixing the build issues...although I'm not yet clear why some of the builds are green and some are red. Will followup with a proper fix.

Copy link
Member

@karalabe karalabe left a comment

Choose a reason for hiding this comment

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

LGTM

@karalabe karalabe added this to the 1.8.13 milestone Jul 16, 2018
@karalabe karalabe merged commit 5d30be4 into ethereum:master Jul 16, 2018
firmianavan pushed a commit to firmianavan/go-ethereum that referenced this pull request Aug 28, 2018
* keystore, ethash, eth, miner, rpc, whisperv6: tech debt with now defunct set.

* whisperv5: swap out gopkg.in/fatih/set.v0 with supported set
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.

3 participants