-
Notifications
You must be signed in to change notification settings - Fork 55
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
define proper parent error type for YamuxError
#1040
Conversation
All errors raised by `nim-libp2p` should descend from `LPError`. `YamuxError` was not correctly classified. Proposing it to be a specialized `MuxerError`, in line with `mplex` and `muxer` errors.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## unstable #1040 +/- ##
=========================================
Coverage 82.77% 82.77%
=========================================
Files 91 91
Lines 15604 15604
=========================================
Hits 12916 12916
Misses 2688 2688
|
@etan-status Could you please explain what |
|
Thanks, I meant literally, what does the name mean? |
Oh, heh - the |
I see, maybe |
well, imo p2p is quite generic and LP is a well established convention in nim libp2p, I personally don't see a need to change it, but I'm also don't feel very strongly about it. |
It never crossed my mind that LP means libp2p. I believe a comment or docs would be beneficial. |
It's a followup from #582. |
All errors raised by
nim-libp2p
should descend fromLPError
.YamuxError
was not correctly classified. Proposing it to be a specializedMuxerError
, in line withmplex
andmuxer
errors.