We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef2e739 commit 2f734f9Copy full SHA for 2f734f9
lightning-net-tokio/src/lib.rs
@@ -208,7 +208,12 @@ impl Connection {
208
break Disconnect::CloseConnection;
209
}
210
},
211
- SelectorOutput::B(_) => {},
+ SelectorOutput::B(some) => {
212
+ // The mpsc Receiver should only return `None` if the write side has been
213
+ // dropped, but that shouldn't be possible since its referenced by the Self in
214
+ // `us`.
215
+ debug_assert!(some.is_some());
216
+ },
217
SelectorOutput::C(res) => {
218
if res.is_err() { break Disconnect::PeerDisconnected; }
219
match reader.try_read(&mut buf) {
0 commit comments