Skip to content

Commit 40c0161

Browse files
committed
docs(socket): comment
1 parent 7477328 commit 40c0161

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

msg-socket/src/req/socket.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ where
9696

9797
/// Borrow the latest transport-level stats snapshot.
9898
pub fn transport_stats(&self) -> Arc<T::Stats> {
99+
// NOTE: We clone the Arc here because purely borrowing the inner stats
100+
// would lock the channel.
99101
self.state.transport.1.borrow().clone()
100102
}
101103

0 commit comments

Comments
 (0)