fix nym-api config deserialisation + clippy

This commit is contained in:
Jędrzej Stuczyński
2026-05-26 10:18:39 +01:00
parent dc0835f1f3
commit cf55e2fe86
2 changed files with 4 additions and 2 deletions
+2
View File
@@ -428,6 +428,7 @@ impl Default for MixnetContractCacheDebug {
}
#[derive(Debug, Deserialize, PartialEq, Serialize)]
#[serde(default)]
pub struct PerformanceProvider {
/// Specifies whether this nym-api should attempt to retrieve node performance
/// information from the performance contract.
@@ -448,6 +449,7 @@ impl Default for PerformanceProvider {
}
#[derive(Debug, Deserialize, PartialEq, Serialize)]
#[serde(default)]
pub struct PerformanceProviderDebug {
/// Specifies interval of polling the performance contract. Note it is only applicable
/// if the contract data is being used.
@@ -95,9 +95,9 @@ impl Args {
.inspect_err(|err| {
tracing::error!("{err}");
});
info!("Probe completed in {:.2}ms", start.elapsed().as_secs_f32());
info!("Probe completed in {:.2}s", start.elapsed().as_secs_f32());
let _ = res?;
res?;
}
Command::GenerateKeypair { path } => {
let path = path