-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Extract dht, kbucket, routing, record, testutils, etc. [work-in-progress] #3185
Conversation
License: MIT Signed-off-by: George Antoniadis <george@noodles.gr>
License: MIT Signed-off-by: George Antoniadis <george@noodles.gr>
License: MIT Signed-off-by: George Antoniadis <george@noodles.gr>
// TODO(geoah) Move to ./testutils or somewhere else | ||
func ThreadSafeCloserMapDatastore() ThreadSafeDatastoreCloser { | ||
return CloserWrap(syncds.MutexWrap(datastore.NewMapDatastore())) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the ThreadSafeCloserMapDatastore
I'm talking about.
Originally this was under thirdparty/testutils/datastore.go
but as there was no other reason for go-testutils
to depend on go-datastore
it was removed.
I have temporarily put it under thirdparty/datastore2
but I'm open to suggestions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thats fine with me. The more we break things out the easier it will become to find homes for these sorts of things.
Looks like we need to delete blocks/key, routing/{dht,kbucket,record} and maybe a few others too, and then we should actually use these new extracted packages 📦 |
License: MIT Signed-off-by: George Antoniadis <george@noodles.gr>
@whyrusleeping not sure why the packages were still there. I have now actually removed the packages. I think I got them all? |
Closing this in favour or more, smaller PRs. |
This is a direct continuation of the work done to separate the dht package. It replaces various packages with external ones.
Once libp2p/go-libp2p-kad-dht#6 is merged, there a couple more stuff to do and this should be merge-able as well.
ThreadSafeCloserMapDatastore