Available on crate feature
server only.Expand description
A fully-fledged iroh-relay server over HTTP or HTTPS.
+Available on crate feature
server only.Expand description
A fully-fledged iroh-relay server over HTTP or HTTPS.
This module provides an API to run a full fledged iroh-relay server. It is primarily
used by the iroh-relay binary in this crate. It can be used to run a relay server in
other locations however.
//! A fully-fledged iroh-relay server over HTTP or HTTPS.
+1110
+1111//! A fully-fledged iroh-relay server over HTTP or HTTPS.
//!
//! This module provides an API to run a full fledged iroh-relay server. It is primarily
//! used by the `iroh-relay` binary in this crate. It can be used to run a relay server in
@@ -1887,6 +1888,7 @@
use futures_util::SinkExt;
use http::header::UPGRADE;
use iroh_base::{NodeId, SecretKey};
+ use testresult::TestResult;
use super::*;
use crate::{
@@ -2017,7 +2019,7 @@
}
#[tokio::test]
- async fn test_relay_clients_both_relay() -> Result<()> {
+ async fn test_relay_clients_both_relay() -> TestResult<()> {
let _guard = iroh_test::logging::setup();
let server = spawn_local_relay().await.unwrap();
let relay_url = format!("http://{}", server.http_addr().unwrap());
@@ -2069,7 +2071,7 @@
}
#[tokio::test]
- async fn test_relay_clients_both_websockets() -> Result<()> {
+ async fn test_relay_clients_both_websockets() -> TestResult<()> {
let _guard = iroh_test::logging::setup();
let server = spawn_local_relay().await?;
@@ -2131,7 +2133,7 @@
}
#[tokio::test]
- async fn test_relay_clients_websocket_and_relay() -> Result<()> {
+ async fn test_relay_clients_websocket_and_relay() -> TestResult<()> {
let _guard = iroh_test::logging::setup();
let server = spawn_local_relay().await.unwrap();