-
Notifications
You must be signed in to change notification settings - Fork 985
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: Add FromFn
ConnectionHandler
#2852
Closed
Closed
Changes from 32 commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
2c580d9
Add `ReadyUpgrade`
thomaseizinger b2d1c05
Add basic `FromFn` `ConnectionHandler`
thomaseizinger 230fabb
Add `TState` abstraction
thomaseizinger 58fe45b
Publicly expose types
thomaseizinger ff1db42
Fix docs
thomaseizinger 1b175d2
Implement limit for max inbound streams and pending dials
thomaseizinger 69fa94f
Implement std::error::Error for `OpenError`
thomaseizinger 54e6437
Avoid dial terminology for streams
thomaseizinger 635730a
Remove `idle_waker`
thomaseizinger b37fa5c
Make `TState` configurable
thomaseizinger d4079bf
Finish local work before producing new work
thomaseizinger bc361ec
Introduce `FromFnProto`
thomaseizinger 712180b
Expose `remote_peer_id` and `connected_point` to closures
thomaseizinger f9f8e75
Merge branch 'master' into from-fn-connection-handler
thomaseizinger 5d7f0bd
Implement `Shared` abstraction to automatically share state
thomaseizinger 8ee59fd
Don't allow ConnectionHandlers to modify the state
thomaseizinger 7fb4387
Implement test
thomaseizinger ac5c236
Remove unnecessary waker
thomaseizinger 3e81e72
Separate clone-able registration data
thomaseizinger 49c6eb1
WIP: Migrate `libp2p-rendezvous` to `from_fn`
thomaseizinger 411c0d7
fixup! WIP: Migrate `libp2p-rendezvous` to `from_fn`
thomaseizinger 5e185d8
fixup! WIP: Migrate `libp2p-rendezvous` to `from_fn`
thomaseizinger bdbeadc
Enforce the use of `Shared`
thomaseizinger 660c0a3
Share state between connection handlers
thomaseizinger f5a3c50
Introduce builder pattern
thomaseizinger df74f14
Update docs
thomaseizinger f84388f
Make inbound streams impossible when no handler is configured
thomaseizinger 6d1add5
Allow for streaming protocols
thomaseizinger 913caf3
Pass `ConnectedPoint` by value
thomaseizinger e9cd5fc
Allow regular async functions to be used as handlers
thomaseizinger 5801576
Flatten errors
thomaseizinger c15433f
Implement `libp2p-ping` with `from_fn` abstraction
thomaseizinger a418d2f
Merge branch 'master' into from-fn-connection-handler
thomaseizinger 628e9ab
Fully migrate rendezvous
thomaseizinger 7bdd953
Minimise diff
thomaseizinger 4485c48
Merge branch 'master' into from-fn-connection-handler
thomaseizinger 6f00703
Update to new behaviour interface
thomaseizinger 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 was deleted.
Oops, something went wrong.
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.
yes, this looks pretty neat!