-
Notifications
You must be signed in to change notification settings - Fork 999
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
swarm/behaviour: Replace inject_*
with on_event
#3011
Merged
Merged
Changes from 66 commits
Commits
Show all changes
77 commits
Select commit
Hold shift + click to select a range
90a1349
swarm/behaviour: Replace inject_* with on_event
mxinden de5c46d
swarm/behaviour: Delegate to on_event from inject_*
mxinden 021a7f1
swarm/behaviour: Address code review
mxinden ff08ccd
Merge branch 'master' of https://github.com/libp2p/rust-libp2p into b…
mxinden 3d8561d
Merge branch 'master' of https://github.com/libp2p/rust-libp2p into b…
mxinden 07a4f20
swarm/behaviour: Add on_connection_handler_event
mxinden 99a4b64
swarm/behaviour: Use slice
mxinden 46f20fa
swarm/behaviour: Rename to maybe_map_handler
mxinden 63b70fe
swarm/behaviour: Provide default for on_swarm and on_connection
mxinden 1a33678
review: address suggestions
jxs 09ca723
autonat/behaviour: Replace inject_* with on_event
jxs af7cf9b
Merge branch 'master' of github.com:libp2p/rust-libp2p into behaviour…
jxs 4f5cc26
swarm: remove no longer required DummyBehaviour
jxs 510fd5e
autonat/behaviour: remove no longer needed inject methods
jxs 9bb6714
Merge branch 'master' of github.com:libp2p/rust-libp2p into behaviour…
jxs 9b60343
swarm/behaviour: use full definition instead of type alias,
jxs b3743da
Merge branch 'master' into behaviour-on-event
jxs feccba0
swarm/behaviour: update FromSwarm enum variants to structs
jxs 6dc84f8
autonat/behaviour: update on_swarm_event,
jxs e28fac5
request-response/lib: replace inject_* methods with on_*,
jxs 80b2345
Merge branch 'master' of github.com:libp2p/rust-libp2p into behaviour…
jxs db4bfad
autonat/behaviour: add missing on_connection_handler_event
jxs aebd4a9
swarm/lib: revert back None -> peer_id
jxs fb63892
dcutr/behaviour: replace inject_* methods with on_*
jxs 790d848
floodsub/layer: replace inject_* methods with on_*
jxs d24c92c
gossipsub/behaviour: replace inject_* methods with on_*
jxs e88c75d
identify/behaviour: replace inject_* methods with on_*
jxs 0ccb577
kad/behaviour: replace inject_* methods with on_*
jxs e18046a
mdns/behaviour: replace inject_* methods with on_*
jxs 133ca33
ping/lib: replace inject_* methods with on_*,
jxs df73ad1
relay: replace inject_* methods with on_*
jxs 0af9601
rendezvous: replace inject_* methods with on_*
jxs 44e0e7c
general: update changelogs
jxs c037679
request-response: update changelog
jxs 92edc14
general: apply cargo fmt and clippy
jxs 1da43f1
general: apply cargo fmt and clipy
jxs 29f5bad
swarm/test: replace inject_* with on_* methods
jxs ac345b3
swarm: apply cargo fmt and clipy
jxs bdba3af
relay: cargo clippy
jxs 2166857
Merge branch 'master' into behaviour-on-event
jxs 18e717a
review: Update CHANGELOG according to Thomas review.
jxs 30dbe46
review: remove probably not needed comments
jxs 1a2aaeb
review: address Thomas reviews
jxs 2e58d65
review: cargo fmt
jxs 9c52704
review: Update CHANGELOG links to proper ones.
jxs f9037a2
review update swarm dependency on protocols
jxs 0c27ea6
review: address Thomas review comments
jxs 632bad4
review: minimize diff changes,
jxs 59f9c56
review: update protocol crates versions,
jxs d095dc4
review: address Max's review comments
jxs e9bf9c5
review: update FromSwarm matching cases,
jxs 52c6df1
review: remove no longer required swarm public_api test
jxs 3300d7f
review: Address Max's review.
jxs c259abc
swarm: update deprcated warnings since version
jxs 6695976
review: Address Thomas suggestions
jxs 7090644
swarm-derive: update proc macro to use on_swarm_event,
jxs ae3e68a
review: Address Max suggestions
jxs 7a68218
Merge branch 'master' of github.com:libp2p/rust-libp2p into behaviour…
jxs c1d053a
review: remove non need newline
jxs a369ee7
review: re-introduce trailing whitespace for less review diff
jxs fe61298
review: re-introduce trailing whitespace for less review
jxs eddf631
Merge branch 'master' of github.com:libp2p/rust-libp2p into behaviour…
jxs 7c99636
review: address max suggestion,
jxs ba56bfd
review: nit, improve all variants matchingstyle
jxs 6d25374
Merge branch 'master' of github.com:libp2p/rust-libp2p into behaviour…
jxs 7d8a2b7
review: replace inject_event on missing parts,
jxs b9baeb3
review: address Thomas suggestion
jxs bb15c1f
Merge branch 'master' into behaviour-on-event
jxs ed3f5cf
Merge branch 'master' of github.com:libp2p/rust-libp2p into behaviour…
jxs 73e0dcf
review: revert to call inject on inner types.
jxs 10a5a62
Merge branch 'behaviour-on-event' into behaviour-on-event-2
jxs eb307bd
Merge branch 'master' of github.com:libp2p/rust-libp2p into behaviour…
jxs f0fd82a
review: revert swarm-derive to call inject on inner types.
jxs d11950b
Merge branch 'master' of github.com:libp2p/rust-libp2p into behaviour…
jxs dcf8235
review: revert missing var names on swarm-derive.
jxs cc2b56e
Merge branch 'master' of github.com:libp2p/rust-libp2p into behaviour…
jxs 8604715
Merge branch 'master' into behaviour-on-event
mergify[bot] 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
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.
This is duplicated with the
swarm
CHANGELOG. Not sure if needs to be? We typically don't call out sub-changelogs, right?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.
Thanks Thomas, addressed :)