-
Notifications
You must be signed in to change notification settings - Fork 1.2k
refactor(swarm)!: refactor ListenUpgradeError and DialUpgradeError #3307
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
Changes from 1 commit
e63d5c7
fbc6b82
11db523
a793fb0
05c5fd0
6758ccd
24d4c9d
fb51e22
a03e26c
a403407
bc2e6bb
4a0e5ee
021502c
ec1cb53
1bc39e2
d70280a
3a0db97
c2eda37
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -239,12 +239,17 @@ where | |||||
| )); | ||||||
| continue; | ||||||
| } | ||||||
| Poll::Ready(Some((info, Err(error)))) => { | ||||||
| handler.on_connection_event(ConnectionEvent::ListenUpgradeError( | ||||||
| ListenUpgradeError { info, error }, | ||||||
| )); | ||||||
| continue; | ||||||
| } | ||||||
| Poll::Ready(Some((info, Err(error)))) => match error { | ||||||
| ConnectionHandlerUpgrErr::Upgrade(error) => { | ||||||
| handler.on_connection_event(ConnectionEvent::ListenUpgradeError( | ||||||
| ListenUpgradeError { info, error }, | ||||||
| )); | ||||||
| continue; | ||||||
| } | ||||||
| ConnectionHandlerUpgrErr::Timeout => { | ||||||
| log::debug!("Timeout expired during an inbound substream negotiation") | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
That would be more useful IMO.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Yes, it was only meant to be illustrative on what I'd like to have printed! |
||||||
| } | ||||||
| }, | ||||||
| } | ||||||
|
|
||||||
| // Ask the handler whether it wants the connection (and the handler itself) | ||||||
|
|
||||||
Uh oh!
There was an error while loading. Please reload this page.