derive debug for ServerStats (#3731)

This commit is contained in:
Yeastplume 2022-07-28 11:08:14 +01:00 committed by GitHub
parent a14a8e3123
commit 6d25382ff5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,
@ -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,