Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Derive common classes for IfDisconnected. (#8346)
Browse files Browse the repository at this point in the history
  • Loading branch information
eskimor authored Mar 12, 2021
1 parent 3ba5808 commit 18ab090
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client/network/src/request_responses.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ impl From<(Cow<'static, str>, RequestId)> for ProtocolRequestId {
}

/// When sending a request, what to do on a disconnected recipient.
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum IfDisconnected {
/// Try to connect to the peer.
TryConnect,
Expand Down

0 comments on commit 18ab090

Please sign in to comment.