fixed builds of other binaries

This commit is contained in:
Jędrzej Stuczyński
2023-12-18 19:08:39 +00:00
committed by Jon Häggblad
parent 67701290d3
commit 3f504d7500
8 changed files with 10 additions and 6 deletions
+1 -1
View File
@@ -79,7 +79,7 @@ impl ExplorerApi {
self.wait_for_interrupt(shutdown).await
}
async fn wait_for_interrupt(&self, shutdown: TaskManager) {
async fn wait_for_interrupt(&self, mut shutdown: TaskManager) {
let _res = shutdown.catch_interrupt().await;
log::info!("Stopping explorer API");
}
+3 -1
View File
@@ -388,7 +388,9 @@ impl<St> Gateway<St> {
))
}
async fn wait_for_interrupt(shutdown: TaskManager) -> Result<(), Box<dyn Error + Send + Sync>> {
async fn wait_for_interrupt(
mut shutdown: TaskManager,
) -> Result<(), Box<dyn Error + Send + Sync>> {
let res = shutdown.catch_interrupt().await;
log::info!("Stopping nym gateway");
res
+1 -1
View File
@@ -215,7 +215,7 @@ impl MixNode {
})
}
async fn wait_for_interrupt(&self, shutdown: TaskManager) {
async fn wait_for_interrupt(&self, mut shutdown: TaskManager) {
let _res = shutdown.catch_interrupt().await;
log::info!("Stopping nym mixnode");
}
+1 -1
View File
@@ -3593,7 +3593,7 @@ dependencies = [
"bip39",
"cfg-if",
"colored 2.0.4",
"cosmrs 0.15.0 (registry+https://github.com/rust-lang/crates.io-index)",
"cosmrs 0.15.0 (git+https://github.com/jstuczyn/cosmos-rust?branch=nym-temp/all-validator-features)",
"cosmwasm-std",
"dirs 4.0.0",
"dotenvy",
@@ -35,6 +35,7 @@ pub(crate) fn validators() -> Vec<ValidatorDetails> {
vec![ValidatorDetails::new(
"https://qa-validator.qa.nymte.ch/",
Some("https://qa-nym-api.qa.nymte.ch/api"),
Some("wss://qa-validator.qa.nymte.ch/websocket"),
)]
}
@@ -32,6 +32,7 @@ pub(crate) fn validators() -> Vec<ValidatorDetails> {
vec![ValidatorDetails::new(
"https://rpc.sandbox.nymtech.net",
Some("https://sandbox-nym-api1.nymtech.net/api"),
Some("wss://rpc.sandbox.nymtech.net/websocket"),
)]
}
+1 -1
View File
@@ -49,7 +49,7 @@ base64 = "0.13"
zeroize = { version = "1.5", features = ["zeroize_derive", "serde"] }
cosmwasm-std = "1.3.0"
cosmrs = "=0.15.0"
cosmrs = { git = "https://github.com/jstuczyn/cosmos-rust", branch ="nym-temp/all-validator-features" }
nym-validator-client = { path = "../../common/client-libs/validator-client" }
nym-crypto = { path = "../../common/crypto", features = ["asymmetric"] }
@@ -35,7 +35,7 @@ impl NetworkStatisticsAPI {
pub async fn run(self) {
let rocket_shutdown_handle = self.rocket.shutdown();
let shutdown = TaskManager::new(10);
let mut shutdown = TaskManager::new(10);
tokio::spawn(self.rocket.launch());
shutdown.catch_interrupt().await.ok();