Skip to content

Commit

Permalink
derive debug for ServerStats (#3731)
Browse files Browse the repository at this point in the history
  • Loading branch information
yeastplume authored Jul 28, 2022
1 parent a14a8e3 commit 6d25382
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions servers/src/common/stats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ impl Default for ServerStateInfo {
}
/// Simpler thread-unaware version of above to be populated and returned to
/// consumers might be interested in, such as test results or UI
#[derive(Clone)]
#[derive(Debug, Clone)]
pub struct ServerStats {
/// Number of peers
pub peer_count: u32,
Expand Down Expand Up @@ -141,7 +141,7 @@ pub struct StratumStats {
}

/// Stats on the last WINDOW blocks and the difficulty calculation
#[derive(Clone)]
#[derive(Debug, Clone)]
pub struct DiffStats {
/// latest height
pub height: u64,
Expand Down

0 comments on commit 6d25382

Please sign in to comment.