-
Notifications
You must be signed in to change notification settings - Fork 1.2k
fix: Add wrapped error type in stream.go
#3237
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
Conversation
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 just use:
StreamError
from:
https://github.com/libp2p/go-libp2p/blob/master/core/network/mux.go#L17
You can set the ErrorCode to 0 and use the appropriate Remote flag.
Removed the custom defined Line 42 in b663d7b
Also on the remote flags I have assumed the read errors are initiated by the |
You can just use the remote field on |
Thanks @Prabhat1308 |
fixes #3156