chore: move authenticator into gateway crate (#5982)
* removed unused bits of authenticator config * moved authenticator into gateway * cleaned up imports * clippy
This commit is contained in:
committed by
GitHub
parent
0a48fa6172
commit
724420f97c
@@ -7,6 +7,7 @@ use clap::crate_version;
|
||||
use nym_gateway::node::{
|
||||
LocalAuthenticatorOpts, LocalIpPacketRouterOpts, LocalNetworkRequesterOpts,
|
||||
};
|
||||
use nym_gateway::nym_authenticator;
|
||||
|
||||
// a temporary solution until further refactoring is made
|
||||
fn ephemeral_gateway_config(config: &Config) -> nym_gateway::config::Config {
|
||||
@@ -182,7 +183,6 @@ pub fn gateway_tasks_config(config: &Config) -> GatewayTasksConfig {
|
||||
.authenticator
|
||||
.to_common_client_paths(),
|
||||
},
|
||||
logging: config.logging,
|
||||
},
|
||||
custom_mixnet_path: None,
|
||||
};
|
||||
|
||||
@@ -21,6 +21,7 @@ use nym_config::{
|
||||
must_get_home, parse_urls, read_config_from_toml_file, save_formatted_config_to_file,
|
||||
NymConfigTemplate, DEFAULT_CONFIG_DIR, DEFAULT_CONFIG_FILENAME, DEFAULT_DATA_DIR, NYM_DIR,
|
||||
};
|
||||
use nym_gateway::nym_authenticator;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use std::env;
|
||||
use std::fmt::{Display, Formatter};
|
||||
|
||||
Reference in New Issue
Block a user