We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7477328 commit 40c0161Copy full SHA for 40c0161
msg-socket/src/req/socket.rs
@@ -96,6 +96,8 @@ where
96
97
/// Borrow the latest transport-level stats snapshot.
98
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.
101
self.state.transport.1.borrow().clone()
102
}
103
0 commit comments