diff --git a/clients/nym-client/src/clients/mod.rs b/clients/nym-client/src/clients/mod.rs index a8f0789c5b..4737c7a70a 100644 --- a/clients/nym-client/src/clients/mod.rs +++ b/clients/nym-client/src/clients/mod.rs @@ -228,7 +228,7 @@ impl NymClient { let provider_client_listener_address: SocketAddr = topology .get_mix_provider_nodes() .first() - .unwrap() + .expect("Could not get a provider from the supplied network topology, are you using the right directory server?") .client_listener; let mut provider_client = provider_client::ProviderClient::new( diff --git a/clients/nym-client/src/commands/mod.rs b/clients/nym-client/src/commands/mod.rs index 83edeba8a9..1b0fe864f6 100644 --- a/clients/nym-client/src/commands/mod.rs +++ b/clients/nym-client/src/commands/mod.rs @@ -1,4 +1,3 @@ pub mod init; -pub mod run; pub mod tcpsocket; pub mod websocket; diff --git a/sfw-provider/src/main.rs b/sfw-provider/src/main.rs index 9bfc1800ea..d03fe163ec 100644 --- a/sfw-provider/src/main.rs +++ b/sfw-provider/src/main.rs @@ -71,6 +71,7 @@ fn main() { } fn run(matches: &ArgMatches) { + println!("{}", banner()); let config = new_config(matches); let provider = ServiceProvider::new(&config); @@ -78,8 +79,6 @@ fn run(matches: &ArgMatches) { } fn new_config(matches: &ArgMatches) -> provider::Config { - println!("Running the service provider!"); - let directory_server = matches .value_of("directory") .unwrap_or("https://directory.nymtech.net") @@ -113,14 +112,9 @@ fn new_config(matches: &ArgMatches) -> provider::Config { .unwrap_or("/tmp/nym-provider/registered_clients"), ); - println!("The value of mix_host is: {:?}", mix_host); - println!("The value of mix_port is: {:?}", mix_port); - println!("The value of client_host is: {:?}", client_host); - println!("The value of client_port is: {:?}", client_port); - println!("The value of key is: {:?}", key_pair.private.clone()); - println!("The value of store_dir is: {:?}", store_dir); + println!("store_dir is: {:?}", store_dir); println!( - "The value of registered_client_ledger_dir is: {:?}", + "registered_client_ledger_dir is: {:?}", registered_client_ledger_dir ); @@ -136,14 +130,8 @@ fn new_config(matches: &ArgMatches) -> provider::Config { .next() .expect("Failed to extract the socket address from the iterator"); - println!( - "The full combined mix socket address is {}", - mix_socket_address - ); - println!( - "The full combined client socket address is {}", - client_socket_address - ); + println!("Listening for mixnet packets on {}", mix_socket_address); + println!("Listening for client requests on {}", client_socket_address); provider::Config { mix_socket_address,