Skip to content

Commit

Permalink
Merge pull request #2107 from loziniak/main
Browse files Browse the repository at this point in the history
feat(client): enable Debug
  • Loading branch information
joshuef authored Sep 18, 2024
2 parents 46f4f0b + 5120900 commit 3eba08f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sn_client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion sn_networking/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,14 +148,15 @@ 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<NetworkInner>,
}

/// 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<NetworkSwarmCmd>,
local_swarm_cmd_sender: mpsc::Sender<LocalSwarmCmd>,
Expand Down

0 comments on commit 3eba08f

Please sign in to comment.