mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-24 23:31:33 +00:00
Chore/semi colons (#799)
* Add helpers for easier Transports creation (#777) * Add helpers for easier Transports creation * Fix doctests * Fix ' ;' occurrences
This commit is contained in:
committed by
Toralf Wittner
parent
83320e0347
commit
f541df391a
@ -184,9 +184,9 @@ where TMuxer: muxing::StreamMuxer + Send + Sync + 'static,
|
||||
// Here is a tricky part: we need to get back the muxer in order to return
|
||||
// it, but it is in an `Arc`.
|
||||
let unwrapped = Arc::try_unwrap(muxer).unwrap_or_else(|_| {
|
||||
panic!("we clone the Arc only to put it into substreams ; once in the \
|
||||
Finishing state, no substream or upgrade exists anymore ; \
|
||||
therefore there exists only one instance of the Arc; QED")
|
||||
panic!("We clone the Arc only to put it into substreams. Once in the \
|
||||
Finishing state, no substream or upgrade exists anymore. \
|
||||
Therefore, there exists only one instance of the Arc. QED")
|
||||
});
|
||||
|
||||
// We leave `Poisoned` as the state when returning.
|
||||
|
@ -107,7 +107,7 @@ where
|
||||
}
|
||||
EitherOutput::First(sender) => {
|
||||
let observed = self.observed_addresses.get(&peer_id)
|
||||
.expect("We only receive events from nodes we're connected to ; we insert \
|
||||
.expect("We only receive events from nodes we're connected to. We insert \
|
||||
into the hashmap when we connect to a node and remove only when we \
|
||||
disconnect; QED");
|
||||
self.to_answer.push((sender, observed.clone()));
|
||||
|
Reference in New Issue
Block a user