diff --git a/nym-gateway-probe/src/run.rs b/nym-gateway-probe/src/run.rs index 06fcbbb1d8..aa961b784b 100644 --- a/nym-gateway-probe/src/run.rs +++ b/nym-gateway-probe/src/run.rs @@ -147,7 +147,7 @@ struct RunPortsProbeConfig { #[derive(Serialize)] #[serde(untagged)] pub(crate) enum ProbeOutput { - Standard(ProbeResult), + Standard(Box), PortCheck(PortCheckResult), } @@ -222,7 +222,7 @@ pub(crate) async fn run() -> anyhow::Result { Box::pin(trial.probe_run_locally(&config_dir, credential_mode)) .await - .map(ProbeOutput::Standard) + .map(|r| ProbeOutput::Standard(Box::new(r))) } Commands::Run { entry_gateway, @@ -268,7 +268,7 @@ pub(crate) async fn run() -> anyhow::Result { nym_gateway_probe::Probe::new(entry_details, exit_details, network, probe_config); Box::pin(trial.probe_run(&config_dir, credential_mode)) .await - .map(ProbeOutput::Standard) + .map(|r| ProbeOutput::Standard(Box::new(r))) } Commands::RunPorts { entry_gateway, @@ -350,7 +350,7 @@ pub(crate) async fn run() -> anyhow::Result { .await?; Box::pin(trial.probe_run_agent(credential_args)) .await - .map(ProbeOutput::Standard) + .map(|r| ProbeOutput::Standard(Box::new(r))) } } } diff --git a/nym-node-status-api/nym-node-status-api/src/db/queries/gateways.rs b/nym-node-status-api/nym-node-status-api/src/db/queries/gateways.rs index 5049163317..57ca705fa4 100644 --- a/nym-node-status-api/nym-node-status-api/src/db/queries/gateways.rs +++ b/nym-node-status-api/nym-node-status-api/src/db/queries/gateways.rs @@ -118,9 +118,8 @@ impl Storage { if failed > 0 { tracing::warn!("{failed} gateway DTO(s) failed conversion and were skipped"); } - let items = gateways; - tracing::trace!("Fetched {} gateways from DB", items.len()); - Ok(items) + tracing::trace!("Fetched {} gateways from DB", gateways.len()); + Ok(gateways) } }