-
Notifications
You must be signed in to change notification settings - Fork 959
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
Improve the transport creation experience #953
Comments
What do you mean by "modifiers"? |
In the same vein, I think we should be able to test the higher level logic without depending on specific transports, for example: https://github.com/libp2p/rust-libp2p/blob/603c7be7c21164a82b5f71ad746254a36a90c02b/protocols/kad/src/behaviour/test.rs#L67.We introduce TCP just to test if one node gives the correct result back. I think we could pack all the network complexity behind proxy objects that could be substituted for shallow doubles in tests. |
@elferdo There's a |
Ok, thanks for the pointer of |
Closed by #953. |
Creating a transport is a bit of a message because of modifiers everywhere (eg. https://github.com/paritytech/substrate/blob/ed2faf445f8849e8d90ddadc684ac2658819e55f/core/network-libp2p/src/transport.rs#L30-L60).
Needs some API design thoughts.
The text was updated successfully, but these errors were encountered: