-
Notifications
You must be signed in to change notification settings - Fork 930
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/: Enable advanced dialing requests #2317
Merged
Merged
Commits on Oct 29, 2021
-
swarm/: Enable advanced dialing requests
Enable advanced dialing requests both on `Swarm` and via `NetworkBehaviourAction`. Users can now trigger a dial with a specific set of addresses, optionally extended via `NetworkBehaviour::addresses_of_peer`. In addition the whole process is now modelled in a type safe way via the builder pattern. Example of a `NetworkBehaviour` requesting a dial to a specific peer with a set of addresses additionally extended through `NetworkBehaviour::addresses_of_peer`: ```rust NetworkBehaviourAction::Dial { opts: DialOpts::peer_id(peer_id) .condition(PeerCondition::Always) .addresses(addresses) .extend_addresses_through_behaviour() .build(), handler, } ``` Example of a user requesting a dial to an unknown peer with a single address via `Swarm`: ```rust swarm1.dial( DialOpts::unknown_peer_id() .address(addr2.clone()) .build() ) ```
Configuration menu - View commit details
-
Copy full SHA for 2fd729c - Browse repository at this point
Copy the full SHA 2fd729cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 09688c7 - Browse repository at this point
Copy the full SHA 09688c7View commit details
Commits on Nov 3, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 85b6238 - Browse repository at this point
Copy the full SHA 85b6238View commit details -
Configuration menu - View commit details
-
Copy full SHA for 147c533 - Browse repository at this point
Copy the full SHA 147c533View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2bda3b3 - Browse repository at this point
Copy the full SHA 2bda3b3View commit details
Commits on Nov 8, 2021
-
Configuration menu - View commit details
-
Copy full SHA for ad083e9 - Browse repository at this point
Copy the full SHA ad083e9View commit details -
Configuration menu - View commit details
-
Copy full SHA for eea9e12 - Browse repository at this point
Copy the full SHA eea9e12View commit details -
Configuration menu - View commit details
-
Copy full SHA for 26dedbe - Browse repository at this point
Copy the full SHA 26dedbeView commit details -
Configuration menu - View commit details
-
Copy full SHA for eb67288 - Browse repository at this point
Copy the full SHA eb67288View commit details -
Configuration menu - View commit details
-
Copy full SHA for a04eaa3 - Browse repository at this point
Copy the full SHA a04eaa3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 57f0648 - Browse repository at this point
Copy the full SHA 57f0648View commit details -
Configuration menu - View commit details
-
Copy full SHA for 770e3af - Browse repository at this point
Copy the full SHA 770e3afView commit details -
Configuration menu - View commit details
-
Copy full SHA for 96ac37e - Browse repository at this point
Copy the full SHA 96ac37eView commit details
Commits on Nov 9, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 9f941fd - Browse repository at this point
Copy the full SHA 9f941fdView commit details -
Configuration menu - View commit details
-
Copy full SHA for d4410bb - Browse repository at this point
Copy the full SHA d4410bbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 163229c - Browse repository at this point
Copy the full SHA 163229cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8334f36 - Browse repository at this point
Copy the full SHA 8334f36View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1e561e8 - Browse repository at this point
Copy the full SHA 1e561e8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2f1ae01 - Browse repository at this point
Copy the full SHA 2f1ae01View commit details -
Configuration menu - View commit details
-
Copy full SHA for 036cf24 - Browse repository at this point
Copy the full SHA 036cf24View commit details -
Configuration menu - View commit details
-
Copy full SHA for eab21a6 - Browse repository at this point
Copy the full SHA eab21a6View commit details
Commits on Nov 14, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 5e3edb3 - Browse repository at this point
Copy the full SHA 5e3edb3View commit details -
Configuration menu - View commit details
-
Copy full SHA for fed72bf - Browse repository at this point
Copy the full SHA fed72bfView commit details
Commits on Nov 15, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 09293c4 - Browse repository at this point
Copy the full SHA 09293c4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9a52b30 - Browse repository at this point
Copy the full SHA 9a52b30View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8d9b548 - Browse repository at this point
Copy the full SHA 8d9b548View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1562159 - Browse repository at this point
Copy the full SHA 1562159View commit details -
Configuration menu - View commit details
-
Copy full SHA for d11a4ed - Browse repository at this point
Copy the full SHA d11a4edView commit details -
Configuration menu - View commit details
-
Copy full SHA for 03ef106 - Browse repository at this point
Copy the full SHA 03ef106View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8415ba2 - Browse repository at this point
Copy the full SHA 8415ba2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9ada868 - Browse repository at this point
Copy the full SHA 9ada868View commit details
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.