Skip to content

Rust examples for custom relays are wrong #53

@Frando

Description

@Frando

The example on https://docs.iroh.computer/deployment/dedicated-infrastructure does

   let endpoint = Endpoint::builder()
        .relay_mode(iroh::endpoint::RelayMode::Custom(vec![relay_url1, relay_url2]))
        .bind()
        .await?;

If I'm not mistaken this is wrong, it should be

        .relay_mode(RelayMode::Custom(RelayMap::from_iter([relay_url1, relay_url2])))

i.e. the RelayMap::from_iter is missing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions