From 5120900b0f77662c753ee5a1d04512c011ab2dbf Mon Sep 17 00:00:00 2001 From: loziniak Date: Wed, 11 Sep 2024 15:07:23 +0200 Subject: [PATCH] feat(client): enable Debug --- sn_client/src/lib.rs | 2 +- sn_networking/src/lib.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/sn_client/src/lib.rs b/sn_client/src/lib.rs index 3af4d517b3..27594bfa4a 100644 --- a/sn_client/src/lib.rs +++ b/sn_client/src/lib.rs @@ -150,7 +150,7 @@ pub async fn get_data(peer: &str, data_address: &str) -> std::result::Result<(), } /// Client API implementation to store and get data. -#[derive(Clone)] +#[derive(Clone, Debug)] pub struct Client { network: Network, events_broadcaster: ClientEventsBroadcaster, diff --git a/sn_networking/src/lib.rs b/sn_networking/src/lib.rs index a877b206f4..f704644025 100644 --- a/sn_networking/src/lib.rs +++ b/sn_networking/src/lib.rs @@ -148,7 +148,7 @@ pub fn sort_peers_by_key<'a, T>( Ok(sorted_peers) } -#[derive(Clone)] +#[derive(Clone, Debug)] /// API to interact with the underlying Swarm pub struct Network { inner: Arc, @@ -156,6 +156,7 @@ pub struct Network { /// The actual implementation of the Network. The other is just a wrapper around this, so that we don't expose /// the Arc from the interface. +#[derive(Debug)] struct NetworkInner { network_swarm_cmd_sender: mpsc::Sender, local_swarm_cmd_sender: mpsc::Sender,