fix nym-api config deserialisation + clippy
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user