Skip to content

Commit

Permalink
chore: tiny fixes to metrics and log
Browse files Browse the repository at this point in the history
  • Loading branch information
RolandSherwin committed Jan 15, 2025
1 parent 7af69db commit 4959a94
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
6 changes: 0 additions & 6 deletions ant-networking/src/metrics/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -289,12 +289,6 @@ impl NetworkMetricsRecorder {
});
}
Marker::QuotingMetrics { quoting_metrics } => {
let _ = self.relevant_records.set(
quoting_metrics
.close_records_stored
.try_into()
.unwrap_or(i64::MAX),
);
let _ = self
.relevant_records
.set(quoting_metrics.close_records_stored as i64);
Expand Down
6 changes: 5 additions & 1 deletion autonomi/src/client/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,11 @@ impl Client {
verification,
};
let payment_upload = Ok(self.network.put_record(record, &put_cfg).await?);
debug!("Successfully stored chunk: {chunk:?} to {storing_nodes:?}");

match &payment_upload {
Ok(_) => debug!("Successfully stored chunk: {chunk:?} to {storing_nodes:?}"),
Err(err) => error!("Failed to store chunk: {chunk:?} to {storing_nodes:?}: {err:?}"),
}
payment_upload
}

Expand Down

0 comments on commit 4959a94

Please sign in to comment.