-
Notifications
You must be signed in to change notification settings - Fork 47
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
chore(deps)!: bump @libp2p deps #289
Conversation
Codecov Report
@@ Coverage Diff @@
## master #289 +/- ##
==========================================
- Coverage 80.46% 80.44% -0.03%
==========================================
Files 42 42
Lines 9102 9111 +9
Branches 826 828 +2
==========================================
+ Hits 7324 7329 +5
- Misses 1778 1782 +4
Continue to review full report at Codecov.
|
When a stream is created by the muxer, it has no protocol, it's just a simple data channel. The stream is returned to the upgrader, which runs the protocol negotiation algorithm (currently multistream-select but there will be others in future), after which the protocol will be set. It's then handed back to the user. This is all internal to libp2p so maybe it needs an interim type for the muxer to return which has no protocol, then the upgrader can convert it to the type with a protocol so the types will be nicer to use. Effectively though, there will be a protocol set on the stream that is returned from
Not exactly - If you have a connection instance without a multiplexer, I guess you could could negotiate a protocol over it manually, but this is of little practical use because muxing is cheap and connections are expensive. Anyway previously we had the negotiated protocol being returned alongside the stream which made it finicky to track, now it's a property of the stream itself. |
Thanks for the detailed explanation! Very much appreciated.
Noted.
I had a hunch this is what would happen. Does it mean the current logic is acceptable? Do we want to add a log if |
I think the current logic is fine, but if you're null-guarding on |
9ac7dab
to
4800d77
Compare
fb678ec
to
2e44042
Compare
2e44042
to
2a055c8
Compare
Bump enough @libp2p deps to fix master.