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 cab6f9f650..0df7812ebb 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,