The Endpoint allows establishing connections to other iroh nodes.
The Endpoint is the main API interface to manage a local iroh node. It allows
connecting to and accepting connections from other nodes. See the module docs for
more details on how iroh connections work.
diff --git a/pr/3434/docs/src/iroh/endpoint.rs.html b/pr/3434/docs/src/iroh/endpoint.rs.html
index a451d272fb..c9be81486c 100644
--- a/pr/3434/docs/src/iroh/endpoint.rs.html
+++ b/pr/3434/docs/src/iroh/endpoint.rs.html
@@ -3256,24 +3256,22 @@
3256 let conn = endpoint.connect(
*id, NOOP_ALPN).
await?;
3257 conn.close(
0u32.into(),
b"done");
3258 }
-
3259 let dt0 = t0.elapsed();
+
3259 let dt0 = t0.elapsed().as_secs_f64();
3260 let t1 = Instant::now();
3261 for id
in &ids {
3262 let conn = endpoint.connect(
*id, NOOP_ALPN).
await?;
3263 conn.close(
0u32.into(),
b"done");
3264 }
-
3265 let dt1 = t1.elapsed();
-
3266 println!(
-
3267 "Round 0: {}s, {}s per connection",
-
3268 dt0.as_secs_f64(),
-
3269 dt0.as_secs_f64() / (n
as f64)
-
3270 );
-
3271 println!(
-
3272 "Round 1: {}s, {}s per connection",
-
3273 dt1.as_secs_f64(),
-
3274 dt1.as_secs_f64() / (n
as f64)
-
3275 );
-
3276 assert!(dt0.as_secs_f64() / dt1.as_secs_f64() <
20.0);
-
3277 Ok(())
-
3278 }
-
3279}