-
Notifications
You must be signed in to change notification settings - Fork 24
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
Rename errors #14
Rename errors #14
Conversation
@@ -5,69 +5,69 @@ import ( | |||
"fmt" | |||
) | |||
|
|||
type YamuxError struct { | |||
type Error struct { |
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.
Previously was started with repository suffix.
// if the backlog is exceeded, or if there was a remote GoAway. | ||
ErrConnectionReset = &YamuxError{msg: "stream reset"} | ||
ErrStreamReset = &Error{msg: "stream reset"} |
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.
Not a connection reset, but a stream one.
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 but let's not merge this till we have fixes in go-libp2p-yamux. Usually, I'm not a fan of cosmetic breaking changes but I'm pretty sure the only use of these types/values is in go-libp2p-yamux.
@Stebalien, what about merging this first and then pointing |
Done and released. |
Part of libp2p/go-libp2p#814