Skip to content
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 31 commits into from
Nov 15, 2021

Commits on Oct 29, 2021

  1. 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()
    )
    ```
    mxinden committed Oct 29, 2021
    Configuration menu
    Copy the full SHA
    2fd729c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    09688c7 View commit details
    Browse the repository at this point in the history

Commits on Nov 3, 2021

  1. Configuration menu
    Copy the full SHA
    85b6238 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    147c533 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2bda3b3 View commit details
    Browse the repository at this point in the history

Commits on Nov 8, 2021

  1. Configuration menu
    Copy the full SHA
    ad083e9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    eea9e12 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    26dedbe View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    eb67288 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a04eaa3 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    57f0648 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    770e3af View commit details
    Browse the repository at this point in the history
  8. *: Adjust to latest changes

    mxinden committed Nov 8, 2021
    Configuration menu
    Copy the full SHA
    96ac37e View commit details
    Browse the repository at this point in the history

Commits on Nov 9, 2021

  1. Configuration menu
    Copy the full SHA
    9f941fd View commit details
    Browse the repository at this point in the history
  2. swarm/: Add documentation

    mxinden committed Nov 9, 2021
    Configuration menu
    Copy the full SHA
    d4410bb View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    163229c View commit details
    Browse the repository at this point in the history
  4. swarm/CHANGELOG: Add entry

    mxinden committed Nov 9, 2021
    Configuration menu
    Copy the full SHA
    8334f36 View commit details
    Browse the repository at this point in the history
  5. *: Bump versions

    mxinden committed Nov 9, 2021
    Configuration menu
    Copy the full SHA
    1e561e8 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    2f1ae01 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    036cf24 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    eab21a6 View commit details
    Browse the repository at this point in the history

Commits on Nov 14, 2021

  1. Configuration menu
    Copy the full SHA
    5e3edb3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fed72bf View commit details
    Browse the repository at this point in the history

Commits on Nov 15, 2021

  1. Configuration menu
    Copy the full SHA
    09293c4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9a52b30 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8d9b548 View commit details
    Browse the repository at this point in the history
  4. examples: Help type inference

    mxinden committed Nov 15, 2021
    Configuration menu
    Copy the full SHA
    1562159 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    d11a4ed View commit details
    Browse the repository at this point in the history
  6. *: Run cargo fmt

    mxinden committed Nov 15, 2021
    Configuration menu
    Copy the full SHA
    03ef106 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    8415ba2 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    9ada868 View commit details
    Browse the repository at this point in the history