Skip to content

Commit

Permalink
Default value for connection
Browse files Browse the repository at this point in the history
A newly established connection may report
an empty state.
  • Loading branch information
mkuratczyk committed Aug 2, 2023
1 parent f25ff30 commit 798cdfa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/responses.rs
Expand Up @@ -214,6 +214,7 @@ pub struct Connection {
/// To what node the client is connected
pub node: String,
/// Connection state
#[serde(default = "undefined")]
pub state: String,
/// What protocol the connection uses
pub protocol: String,
Expand Down

0 comments on commit 798cdfa

Please sign in to comment.