Skip to content

Commit

Permalink
protocols/dcutr: Fix expect message typo
Browse files Browse the repository at this point in the history
  • Loading branch information
mxinden committed Feb 1, 2022
1 parent 4a5461c commit e7fa5e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protocols/dcutr/src/behaviour.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ impl NetworkBehaviour for Behaviour {
role: handler::Role::Initiator { attempt },
} => {
let peer_id =
peer_id.expect("Prototype::DirectConnection is always for known peer.");
peer_id.expect("Peer of `Prototype::DirectConnection` is always known.");
if attempt < 3 {
self.queued_actions.push_back(Action::Connect {
peer_id,
Expand Down

0 comments on commit e7fa5e9

Please sign in to comment.