Pass the Poisson flag on authenticator config (#5037)

This commit is contained in:
Bogdan-Ștefan Neacşu
2024-10-25 14:08:52 +03:00
committed by GitHub
parent d626e7689f
commit bfa3825d70
2 changed files with 10 additions and 2 deletions
+5 -1
View File
@@ -154,7 +154,7 @@ pub fn ephemeral_entry_gateway_config(
config: Config,
mnemonic: &bip39::Mnemonic,
) -> Result<EphemeralConfig, EntryGatewayError> {
let auth_opts = LocalAuthenticatorOpts {
let mut auth_opts = LocalAuthenticatorOpts {
config: nym_authenticator::Config {
base: nym_client_core_config_types::Config {
client: base_client_config(&config),
@@ -173,6 +173,10 @@ pub fn ephemeral_entry_gateway_config(
custom_mixnet_path: None,
};
if config.authenticator.debug.disable_poisson_rate {
auth_opts.config.base.set_no_poisson_process();
}
let wg_opts = LocalWireguardOpts {
config: super::Wireguard {
enabled: config.wireguard.enabled,
+5 -1
View File
@@ -243,7 +243,7 @@ pub fn ephemeral_exit_gateway_config(
ipr_opts.config.base.set_no_poisson_process()
}
let auth_opts = LocalAuthenticatorOpts {
let mut auth_opts = LocalAuthenticatorOpts {
config: nym_authenticator::Config {
base: nym_client_core_config_types::Config {
client: base_client_config(&config),
@@ -262,6 +262,10 @@ pub fn ephemeral_exit_gateway_config(
custom_mixnet_path: None,
};
if config.authenticator.debug.disable_poisson_rate {
auth_opts.config.base.set_no_poisson_process();
}
let pub_id_path = config
.storage_paths
.keys