Skip to content

Commit 5b33c7e

Browse files
committed
Update for nom-openmetrics rename
1 parent 5df4068 commit 5b33c7e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/client/parse.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use crate::Client;
22
use nom_openmetrics::{
3-
parser::{exposition, prometheus},
3+
parser::{openmetrics, prometheus},
44
Family, MetricDescriptor, Sample,
55
};
66
use nu_protocol::{record, LabeledError, Record, Span, Value};
@@ -30,7 +30,7 @@ impl<'a> Parse<'a> {
3030

3131
let (_, families) = match format {
3232
ParseFormat::Prometheus => prometheus(input.as_str()?).unwrap(),
33-
ParseFormat::Openmetrics => exposition(input.as_str()?).unwrap(),
33+
ParseFormat::Openmetrics => openmetrics(input.as_str()?).unwrap(),
3434
};
3535

3636
let families = families

0 commit comments

Comments
 (0)