-
Notifications
You must be signed in to change notification settings - Fork 1k
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
{core/,swarm/}: Dial with handler and return handler on error and closed #2191
Merged
Merged
Changes from 6 commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
a332591
core/: Return handler on connection error and closed
mxinden 46904a6
swarm/: Inject handler on connection error and closed
mxinden d756be1
swarm/src/behaviour: Provide handler with Dial and DialAddr
mxinden 595623f
Merge branch 'libp2p/master' into handler
mxinden 705842f
swarm/src/behaviour: Add default trait para on NetworkBehaviourAction
mxinden d744b4a
core/src/connection/manager: Fully close a task on disconnect
mxinden 5c2aef6
core/: Remove DisconnectedPeer::set_connected and Pool::add
mxinden ce0d278
core/src/connection: Report ConnectionLimit through task
mxinden 425e777
core/: Emit Event::Failed on aborted pending connection
mxinden 5ff6397
core/tests: Adjust to type changes
mxinden 7d9285f
core/CHANGELOG: Add entry for ConnectionLimit change
mxinden 682f6be
protocols/*: Update
mxinden 9262c03
Merge branch 'libp2p/master' into handler
mxinden 62c5e13
protocols/*: Update
mxinden 174693a
swarm-derive: Adjust to changes
mxinden a78de13
core/: Fix ConectionClose and PendingAborted reporting
mxinden d4960b7
*: Format with rustfmt
mxinden b73139a
core/src/connection: Remove outdated doc comment
mxinden aa02e5f
swarm/src/toggle: Fix TODOs
mxinden 2c9f0d3
protocols/: Remove unused imports
mxinden 6d7c73a
Merge branch 'libp2p/master' into handler
mxinden a56980e
core/src/network/event: Use NoZeroU32
mxinden 1c3ed2e
swarm/src/protocols_handler: Rename to into_protocols_handler
mxinden 32fc84e
swarm/src/behaviour: Introduce NetworkBehaviour::inject_listen_failure
mxinden 7ea4908
swarm/src/lib: Inject handler on DialPeerCondition false
mxinden fbd4681
core/src/connection: Assume manager to always close handler
mxinden 6787e77
swarm-derive: Add comments
mxinden b864133
swarm: Add documentation
mxinden b2bf380
*: Format with rustfmt
mxinden 7d342b6
swar/src/behaviour: Link to NotifyHandler not SendEvent
mxinden 5853890
*: Update changelogs
mxinden 4d0faf9
swarm-derive: Fix typo
mxinden 7a45e7b
Apply suggestions from code review
mxinden cef949c
core/src/network: Revert map_err
mxinden ceb77e5
core/src/network: Use custom method on DialAttemptsRemaining
mxinden 814ff4b
swarm: Add doc example for carrying state in handler
mxinden 90df72a
Merge branch 'libp2p/master' into handler
mxinden 60c7261
swarm/src/lib: Remove use_handler_to_carry_state
mxinden a2f1819
core/tests/network_dial_error: Use get_attempts
mxinden b905545
swarm/src/behaviour.rs: Use heading for doc example
mxinden 99f81d0
core/tests: Format with rustfmt
mxinden 1c5eb8e
Merge branch 'master' into handler
mxinden c09198e
protocols/gossipsub/src/behaviour.rs: Remove unnecesary assignment
mxinden File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Maybe
SelfDial
is a more descriptive name?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.
I want to stress the fact that the peer ids match. This would e.g. not work by matching multiaddresses. All that said, I don't think
LocalPeerId
is the perfect name either.