Skip to content

Commit

Permalink
fix: skipped patches.
Browse files Browse the repository at this point in the history
  • Loading branch information
l-monninger committed Apr 8, 2024
2 parents 3fc0632 + 3e689f9 commit 8f40ae4
Show file tree
Hide file tree
Showing 4 changed files with 1,474 additions and 7 deletions.
4 changes: 2 additions & 2 deletions aptos-move/aptos-vm/src/block_executor/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@ pub struct AptosTransactionOutput {
}

impl AptosTransactionOutput {
pub(crate) fn new(output: VMOutput) -> Self {
pub fn new(output: VMOutput) -> Self {
Self {
vm_output: Mutex::new(Some(output)),
committed_output: OnceCell::new(),
}
}

pub(crate) fn committed_output(&self) -> &TransactionOutput {
pub fn committed_output(&self) -> &TransactionOutput {
self.committed_output.get().unwrap()
}

Expand Down
6 changes: 3 additions & 3 deletions crates/aptos-metrics-core/src/const_metric.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ impl ConstMetric {

let mut metric = Metric::default();
metric.set_counter(counter);
metric.set_label(labels);
metric.set_label(labels.into());

Ok(ConstMetric {
desc,
Expand All @@ -63,7 +63,7 @@ impl ConstMetric {

let mut metric = Metric::default();
metric.set_gauge(guage);
metric.set_label(labels);
metric.set_label(labels.into());

Ok(ConstMetric {
desc,
Expand All @@ -84,7 +84,7 @@ impl Collector for ConstMetric {
met.set_name(self.desc.fq_name.clone());
met.set_help(self.desc.help.clone());
met.set_field_type(self.metric_type);
met.set_metric(vec![self.metric.clone()]);
met.set_metric(vec![self.metric.clone()].into());

vec![met]
}
Expand Down
Loading

0 comments on commit 8f40ae4

Please sign in to comment.