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

Update bolt data source with test and dht with tests and enhancements #13

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

oreillysean
Copy link
Contributor

  • added some comments to datastore_bolt.go
  • added bolt data store tests in datastore_bolt_test.go
  • this updates the dht with a number of enhancements
  • the code has more test coverage
  • there is a very small number of backwards compatibility breaks that I think were necessary because dht was exported as a return type, this has been changed to DHT

I do not think GetSlotVsNodes is a great but I think it should be ok for now. It can be refactored to something better.

* added some comments to datastore_bolt.go
* the code has more test coverage
* there is a very small number of backwards compatibility breaks that I think were necessary because dht (lower case) was exported as a return type, this has been changed to DHT

fix for GetSlotVsNodes so that a copy of the slots vs nodes is returned so that the caller cannot modify the returned map
@oreillysean
Copy link
Contributor Author

I would like to work on the consensus section and fsm stuff next, to cover with tests and add more functionality. Happy to refactor this pr if needed.

@aarthikrao
Copy link
Owner

Sure. You can create a separate PR for the same. I will review this PR by tomorrow.

wpted and others added 6 commits August 1, 2023 16:11
* update ignored files: user specific files

* Update ignored files: ignore all appearances of OS generated files
* the code has more test coverage
* there is a very small number of backwards compatibility breaks that I think were necessary because dht (lower case) was exported as a return type, this has been changed to DHT

fix for GetSlotVsNodes so that a copy of the slots vs nodes is returned so that the caller cannot modify the returned map
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