From 6d25382ff587b52cbbc5b88395ea85f9c6d44362 Mon Sep 17 00:00:00 2001 From: Yeastplume Date: Thu, 28 Jul 2022 11:08:14 +0100 Subject: [PATCH] derive debug for ServerStats (#3731) --- servers/src/common/stats.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/servers/src/common/stats.rs b/servers/src/common/stats.rs index a0ad11f889..308a619819 100644 --- a/servers/src/common/stats.rs +++ b/servers/src/common/stats.rs @@ -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,