Work with directory pre-v2.1
Rebase + point to earlier network client code Adjust to new Nym API types Refer to earlier client code Revert "Rebase + point to earlier network client code" This reverts commit dd75e7dc0695c25b0883e2f5dd15b7d70165e9e8. Point to earlier commit
This commit is contained in:
Generated
+704
-316
File diff suppressed because it is too large
Load Diff
@@ -153,6 +153,7 @@ default-members = [
|
||||
"nym-data-observatory",
|
||||
"nym-node",
|
||||
"nym-validator-rewarder",
|
||||
"nym-node-status-api",
|
||||
"service-providers/authenticator",
|
||||
"service-providers/ip-packet-router",
|
||||
"service-providers/network-requester",
|
||||
|
||||
@@ -23,10 +23,14 @@ futures-util = { workspace = true }
|
||||
moka = { workspace = true, features = ["future"] }
|
||||
nym-bin-common = { path = "../common/bin-common" }
|
||||
nym-explorer-client = { path = "../explorer-api/explorer-client" }
|
||||
nym-network-defaults = { path = "../common/network-defaults" }
|
||||
nym-validator-client = { path = "../common/client-libs/validator-client" }
|
||||
# TODO dz: ref before Nym API client changes. Update to latest develop once new Nym API is live
|
||||
nym-network-defaults = { git = "https://github.com/nymtech/nym", rev = "f86e08866" }
|
||||
nym-validator-client = { git = "https://github.com/nymtech/nym", rev = "f86e08866" }
|
||||
# nym-network-defaults = { path = "../common/network-defaults" }
|
||||
# nym-validator-client = { path = "../common/client-libs/validator-client" }
|
||||
nym-task = { path = "../common/task" }
|
||||
nym-node-requests = { path = "../nym-node/nym-node-requests", features = ["openapi"] }
|
||||
nym-node-requests = { git = "https://github.com/nymtech/nym", rev = "f86e08866" }
|
||||
# nym-node-requests = { path = "../nym-node/nym-node-requests", features = ["openapi"] }
|
||||
reqwest = { workspace = true }
|
||||
serde = { workspace = true, features = ["derive"] }
|
||||
serde_json = { workspace = true }
|
||||
|
||||
@@ -13,9 +13,6 @@ pub(crate) struct Config {
|
||||
nyxd_addr: Url,
|
||||
#[serde(default = "Config::default_client_timeout")]
|
||||
#[serde(deserialize_with = "parse_duration")]
|
||||
nym_api_client_timeout: Duration,
|
||||
#[serde(default = "Config::default_client_timeout")]
|
||||
#[serde(deserialize_with = "parse_duration")]
|
||||
explorer_client_timeout: Duration,
|
||||
}
|
||||
|
||||
@@ -51,10 +48,6 @@ impl Config {
|
||||
&self.nyxd_addr
|
||||
}
|
||||
|
||||
pub(crate) fn nym_api_client_timeout(&self) -> Duration {
|
||||
self.nym_api_client_timeout.to_owned()
|
||||
}
|
||||
|
||||
pub(crate) fn nym_explorer_client_timeout(&self) -> Duration {
|
||||
self.explorer_client_timeout.to_owned()
|
||||
}
|
||||
|
||||
@@ -81,7 +81,8 @@ async fn run(
|
||||
tracing::debug!("6");
|
||||
|
||||
let api_client =
|
||||
NymApiClient::new_with_timeout(default_api_url, config.nym_api_client_timeout());
|
||||
// TODO dz introduce timeout ?
|
||||
NymApiClient::new(default_api_url);
|
||||
let gateways = api_client
|
||||
.get_cached_described_gateways()
|
||||
.await
|
||||
|
||||
Reference in New Issue
Block a user