mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-28 17:21:34 +00:00
*: Format with rustfmt (#2188)
Co-authored-by: Thomas Eizinger <thomas@eizinger.io>
This commit is contained in:
@ -303,7 +303,7 @@ impl NetworkBehaviour for Relay {
|
||||
|
||||
fn inject_dial_failure(&mut self, peer_id: &PeerId) {
|
||||
if let Entry::Occupied(o) = self.listeners.entry(*peer_id) {
|
||||
if matches!(o.get(), RelayListener::Connecting{ .. }) {
|
||||
if matches!(o.get(), RelayListener::Connecting { .. }) {
|
||||
// By removing the entry, the channel to the listener is dropped and thus the
|
||||
// listener is notified that dialing the relay failed.
|
||||
o.remove_entry();
|
||||
|
Reference in New Issue
Block a user