mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-10-24 20:55:03 +00:00
Fix warnings when compiling runtime. (#4332)
* Remove warnings when compiling runtime. * Remove dispatch::Result imports. * Add missing imports. * Fix missing vecs. #4333 * Fix oom function. * Remove superfluous import. * More warnings.
This commit is contained in:
1 parent
057e298b1f
commit
1f84d6d41d
25 files changed
+104
-87
No files matched your search
@@ -293,5 +293,7 @@ fn send_telemetry(span_datum: SpanDatum) {
|
||||
|
||||
fn send_grafana(span_datum: SpanDatum) {
|
||||
let name = format!("{}::{}", span_datum.target, span_datum.name);
|
||||
record_metrics!(&name => span_datum.overall_time.as_nanos(),);
|
||||
if let Err(e) = record_metrics!(&name => span_datum.overall_time.as_nanos(),) {
|
||||
log::warn!("Unable to send metrics to grafana: {:?}", e);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user