Skip to content

Commit

Permalink
More explicit enum values
Browse files Browse the repository at this point in the history
  • Loading branch information
za-creature committed Jan 15, 2025
1 parent b034416 commit 0fa23cd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/src/network/peer_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,13 @@ impl<'de> Deserialize<'de> for PeerState {
pub enum PeerStateKind {
/// The peer is known (discovered or explicitly added by the user) but we haven't started
/// establishing a connection to them yet.
Known,
Known = 0,
/// A connection to the peer is being established.
Connecting,
Connecting = 1,
/// The peer is connected but the protocol handshake is still in progress.
Handshaking,
Handshaking = 2,
/// The peer connection is active.
Active,
Active = 3,
}

#[cfg(test)]
Expand Down

0 comments on commit 0fa23cd

Please sign in to comment.