-
Notifications
You must be signed in to change notification settings - Fork 1
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
Review from Thomas Eizinger #97
Conversation
Thanks! I'll try to answer questions regarding my comments, just tag me! |
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.
@thomaseizinger
I've added a bunch of follow-up questions/comments.
I also have one extra question that I'm struggling with: I have observed that quite often the DHT lookups for peers fail, but when I try to look up the same peerID by running libp2p-lookup
, it succeeds. What could be the reason??
Is this in your own DHT or in the IPFS one? Like I commented, I would strongly recommend moving off the IPFS DHT. There are proposals for making it universally useful but until then, it would be better to create your own DHT. |
Our network is isolated, so I believe it works as our own DHT, despite using the same protocol ID string. |
Any logs on the nodes where the lookup fails? |
Well, I just get the |
@thomaseizinger One more architecture question: EDIT: Or maybe I shouldn't even use multiple request-response behaviours, but a single one with multiple protocols supported? Though the downside of this approach seems to be that all protocols would need to share the same response and return and response type, so I cannot have a separate enum per each protocol. |
I wouldn't move kademlia inside. Instead I would:
The result will be that a regardless of how the connection will be established, queued messages are always sent and your behaviour is independent of the discovery mechanism. Does that work for you? |
Yeah, thank you. |
* Apply code review suggestions from #97 * Transport refactor * Feature flags for different actors * Add peer_id to WorkerLogs, update rust version * Ensure message signing * Make libp2p metrics static * Worker adjustments * Fix logs_collected and dockerfile * Revert keypair encoding change (not backwards compatible) * Fix Wrapped::poll() + some trace logs * Fix backwards compatibility issues * Fix legacy messages * Fix handling legacy workers in scheduler * Add missing function in gateway * Legacy gateway logs handling * Observer actor
No description provided.