-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
abstract out dht routing table #118
Comments
im unsure how an interface for that would feel... we would need something like: "GetPeers" and then "GetMorePeers" |
Perhaps, the right thing to do is something like this: type DHT interface {
FindPeersNear(context.Context, u.Key) <-chan *peer.Peer
} Because we can keep the goroutine fetching more and more close peers (with some rate-limit) until it's cancelled. Rate limiting can happen in the context (WithValue). |
alright, i like that. |
closing, not an issue for now, may be in the future, can reopen later if necessary (or just start a new issue) |
Refactor GetClosestPeers()
We need to:
The text was updated successfully, but these errors were encountered: