Skip to content

Commit 8fd336a

Browse files
committed
docs
1 parent 5f51c54 commit 8fd336a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

iroh/src/magicsock.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ impl MagicSock {
275275
/// The actor is responsible for holepunching and opening additional paths to this
276276
/// connection.
277277
///
278-
/// Returns a future that resolves to [`PathsWatchable`].
278+
/// Returns a future that resolves to [`PathsWatcher`].
279279
///
280280
/// The returned future is `'static`, so it can be stored without being liftetime-bound to `&self`.
281281
pub(crate) fn register_connection(

iroh/src/magicsock/endpoint_map/endpoint_state.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1148,14 +1148,18 @@ impl ConnectionState {
11481148
///
11491149
/// This is stored in the [`Connection`], and the watchables are set from within the endpoint state actor.
11501150
///
1151+
/// Internally, this contains a boxed-mapped-joined watcher over the open paths in the connection and the
1152+
/// selected path to the remote endpoint. The watcher is boxed because the mapped-joined watcher with
1153+
/// `SmallVec<PathInfoList>` has a size of over 800 bytes, which we don't want to put upon the [`Connection`].
1154+
///
11511155
/// [`Connection`]: crate::endpoint::Connection
11521156
#[derive(Clone, derive_more::Debug)]
11531157
#[debug("PathsWatcher")]
11541158
pub(crate) struct PathsWatcher(
11551159
Box<
11561160
n0_watcher::Map<
11571161
(
1158-
n0_watcher::Direct<SmallVec<[(TransportAddr, PathId); 4]>>,
1162+
n0_watcher::Direct<PathAddrList>,
11591163
n0_watcher::Direct<Option<transports::Addr>>,
11601164
),
11611165
PathInfoList,

0 commit comments

Comments
 (0)