fix: compile error
parent
9ec89a17e2
commit
ce737d95a8
|
@ -231,7 +231,7 @@ async fn metrics (
|
||||||
{
|
{
|
||||||
let mut s = String::with_capacity (4 * 1_024);
|
let mut s = String::with_capacity (4 * 1_024);
|
||||||
|
|
||||||
let mut push_metric = |name, help, kind, value| {
|
let mut push_metric = |name, help: Option<&str>, kind, value| {
|
||||||
if let Some (help) = help {
|
if let Some (help) = help {
|
||||||
s.push_str (format! ("# HELP {} {}\n", name, help).as_str ());
|
s.push_str (format! ("# HELP {} {}\n", name, help).as_str ());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue