mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
review fixes
This commit is contained in:
parent
93daa4c464
commit
225d9936ed
1 changed files with 1 additions and 2 deletions
|
@ -294,8 +294,7 @@ pub async fn get_metrics(
|
||||||
.encode(&prometheus::gather(), &mut buffer)
|
.encode(&prometheus::gather(), &mut buffer)
|
||||||
.expect("Failed to encode metrics");
|
.expect("Failed to encode metrics");
|
||||||
|
|
||||||
let response = String::from_utf8(buffer.clone()).expect("Failed to convert bytes to string");
|
let response = String::from_utf8(buffer).expect("Failed to convert bytes to string");
|
||||||
buffer.clear();
|
|
||||||
|
|
||||||
Ok(HttpResponse::Ok()
|
Ok(HttpResponse::Ok()
|
||||||
.insert_header(header::ContentType(mime::TEXT_PLAIN))
|
.insert_header(header::ContentType(mime::TEXT_PLAIN))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue