Skip to content

Commit 775adee

Browse files
committed
Update docs!
1 parent a33d966 commit 775adee

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/util/connection_pool.rs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
//! ALPN and [`Options`]. Then the pool will manage connections for you.
55
//!
66
//! Access to connections is via the [`ConnectionPool::connect`] method, which
7-
//! gives you access to a connection if possible.
7+
//! gives you access to a connection via a [`ConnectionRef`] if possible.
88
//!
9-
//! It is important that you use the connection only in the future passed to
10-
//! connect, and don't clone it out of the future.
9+
//! It is important that you keep the [`ConnectionRef`] alive while you are using
10+
//! the connection.
1111
use std::{
1212
collections::{HashMap, VecDeque},
1313
ops::Deref,
@@ -18,10 +18,7 @@ use std::{
1818
time::Duration,
1919
};
2020

21-
use iroh::{
22-
endpoint::ConnectError,
23-
Endpoint, NodeId,
24-
};
21+
use iroh::{endpoint::ConnectError, Endpoint, NodeId};
2522
use n0_future::{
2623
future::{self},
2724
FuturesUnordered, MaybeFuture, Stream, StreamExt,

0 commit comments

Comments
 (0)