Skip to content

examples: Allow to configure the relays example from environment variables - #96

Open
Frando wants to merge 4 commits into
mainfrom
relays-from-env
Open

examples: Allow to configure the relays example from environment variables#96
Frando wants to merge 4 commits into
mainfrom
relays-from-env

Conversation

@Frando

@Frando Frando commented Jul 24, 2026

Copy link
Copy Markdown
Member

Description

This makes the relays example usable as a testing tool without having to edit the source code by reading the relay map from environment variables. Also adds iroh-ping for testing if things work for real.

Breaking Changes

Notes & open questions

Change checklist

  • Self-review.
  • Documentation updates following the style guide, if relevant.
  • Tests if relevant.
  • All breaking changes documented.

@github-actions

github-actions Bot commented Jul 24, 2026

Copy link
Copy Markdown

Documentation for this PR has been generated and is available at: https://n0-computer.github.io/iroh-services/pr/96/docs/iroh_services/

Last updated: 2026-07-24T09:49:07Z

@Frando
Frando requested review from b5 and dignifiedquire and removed request for b5 July 24, 2026 09:47
Comment thread examples/relays.rs
// Ping each target in a loop.
for target in cli.targets {
let endpoint = endpoint.clone();
tokio::task::spawn(async move {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can haz joinset?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants