Feature/config refactor (#3498)
* revamping mixnode connfig * wip * native client config revamping * wip * building socks5 * using const for mixnnode config template * compiling updated gateway * nym-api * nym-sdk * everything compiling once more but definitely not compatible with CI and older versions (yet) * creating full directory structure on init * renamed paths to storage_paths and fixed mixnode template * mixnode config migration * gateway config migration * nym-api config migration * native client config migration * socks5 client config migration * NR config migration * removed deprecations (that will be resolved in the following PRs) + fixed clippy * nym-connect clippy * nym-connect config updates * outfox fixes * defined socks5 lib config * clippy * fixed wasm client build * removed explicit packet_type argument when starting base client it's known implicitly from the previously passed config struct * Empty commit * fixed re-using gateway information when client configs are re-initialised * fixed borrowing id value in nym-connect * post-rebase fixes * updated 'old_config' versions --------- Co-authored-by: Tommy Verrall <tommy@nymtech.net>
This commit is contained in:
committed by
GitHub
parent
bc5198768e
commit
9a68702d4d
@@ -8,9 +8,10 @@ use rocket::Route;
|
||||
use rocket_okapi::{openapi_get_routes_spec, settings::OpenApiSettings};
|
||||
use std::time::Duration;
|
||||
|
||||
use crate::support::config;
|
||||
use crate::{
|
||||
nym_contract_cache::cache::NymContractCache,
|
||||
support::{self, config::Config, storage},
|
||||
support::{self, storage},
|
||||
};
|
||||
|
||||
use self::cache::refresher::NodeStatusCacheRefresher;
|
||||
@@ -74,7 +75,7 @@ pub(crate) fn node_status_routes(
|
||||
/// It is primarily refreshed in-sync with the nym contract cache, however provide a fallback
|
||||
/// caching interval that is twice the nym contract cache
|
||||
pub(crate) fn start_cache_refresh(
|
||||
config: &Config,
|
||||
config: &config::NodeStatusAPI,
|
||||
nym_contract_cache_state: &NymContractCache,
|
||||
node_status_cache_state: &NodeStatusCache,
|
||||
storage: Option<&storage::NymApiStorage>,
|
||||
@@ -83,7 +84,7 @@ pub(crate) fn start_cache_refresh(
|
||||
) {
|
||||
let mut nym_api_cache_refresher = NodeStatusCacheRefresher::new(
|
||||
node_status_cache_state.to_owned(),
|
||||
config.get_node_status_caching_interval(),
|
||||
config.debug.caching_interval,
|
||||
nym_contract_cache_state.to_owned(),
|
||||
nym_contract_cache_listener,
|
||||
storage.cloned(),
|
||||
|
||||
Reference in New Issue
Block a user