diff --git a/clients/socks5/src/commands/init.rs b/clients/socks5/src/commands/init.rs index bc0ec0beb1..53d3b6ddc1 100644 --- a/clients/socks5/src/commands/init.rs +++ b/clients/socks5/src/commands/init.rs @@ -88,6 +88,7 @@ pub fn command_args<'a, 'b>() -> clap::App<'a, 'b> { app } +// TODO: make this private again after refactoring the config setup pub async fn register_with_gateway( gateway: &gateway::Node, our_identity: Arc, @@ -110,6 +111,7 @@ pub async fn register_with_gateway( .expect("failed to register with the gateway!") } +// TODO: make this private again after refactoring the config setup pub async fn gateway_details( validator_servers: Vec, chosen_gateway_id: Option<&str>, @@ -144,6 +146,7 @@ pub async fn gateway_details( } } +// TODO: make this private again after refactoring the config setup pub fn show_address(config: &Config) { fn load_identity_keys(pathfinder: &ClientKeyPathfinder) -> identity::KeyPair { let identity_keypair: identity::KeyPair = diff --git a/clients/socks5/src/lib.rs b/clients/socks5/src/lib.rs index a30c045661..39c657356c 100644 --- a/clients/socks5/src/lib.rs +++ b/clients/socks5/src/lib.rs @@ -2,5 +2,9 @@ // SPDX-License-Identifier: Apache-2.0 pub mod client; +// This is only used as we reach into the init functions in nym-connect. We need to refactor the +// init functions so that nym-connect can just call the same init function as the regular socks5 +// client. +#[allow(unused)] pub mod commands; pub mod socks;