-
Notifications
You must be signed in to change notification settings - Fork 46
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
fix: Rename Protocol::WebRTC
string rep /webrtc
to /webrtc-direct
#84
fix: Rename Protocol::WebRTC
string rep /webrtc
to /webrtc-direct
#84
Conversation
Considered non-breaking change as `/webrtc` will still be parsed to `Protocol::WebRTC` and no known production deployment of `libp2p-webrtc` known. See multiformats/multiaddr#150 (comment) for context.
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.
LGTM!
CHANGELOG.md
Outdated
|
||
- Rename string representation of `WebRTC` protocol from `/webrtc` to `/webrt-direct`. | ||
For backwards compatibility `/webrtc` will still be decoded to `Protocol::WebRTC`, but `Protocol::WebRTC` will from now on always be encoded as `/webrtc-direct`. | ||
See [multiformats/multiaddr discussion] for context. |
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.
Missing link.
src/protocol.rs
Outdated
@@ -200,6 +200,7 @@ impl<'a> Protocol<'a> { | |||
"p2p-websocket-star" => Ok(Protocol::P2pWebSocketStar), | |||
"p2p-webrtc-star" => Ok(Protocol::P2pWebRtcStar), | |||
"webrtc" => Ok(Protocol::WebRTC), |
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.
Can we emit a log here that this variant is deprecated?
…t` (multiformats#84) Considered non-breaking change as `/webrtc` will still be parsed to `Protocol::WebRTC` and no known production deployment of `libp2p-webrtc` known. See multiformats/multiaddr#150 (comment) for context.
…t` (#84) (#87) Considered non-breaking change as `/webrtc` will still be parsed to `Protocol::WebRTC` and no known production deployment of `libp2p-webrtc` known. See multiformats/multiaddr#150 (comment) for context.
Considered non-breaking change as
/webrtc
will still be parsed toProtocol::WebRTC
and no known production deployment oflibp2p-webrtc
known.See multiformats/multiaddr#150 (comment) for context.
@melekes @thomaseizinger can you take a look?