Skip to content

Commit

Permalink
feat(client): enable Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
loziniak committed Sep 12, 2024
1 parent b26bbe3 commit 5120900
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 5120900

Please sign in to comment.