File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff 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 (
Original file line number Diff line number Diff 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" ) ]
11541158pub ( 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 ,
You can’t perform that action at this time.
0 commit comments