mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-23 02:27:40 +08:00
review fixes
This commit is contained in:
parent
1f1482e97c
commit
0b6ca73790
@ -303,8 +303,7 @@ pub async fn get_metrics(
|
||||
.encode(&prometheus::gather(), &mut buffer)
|
||||
.expect("Failed to encode metrics");
|
||||
|
||||
let response = String::from_utf8(buffer.clone()).expect("Failed to convert bytes to string");
|
||||
buffer.clear();
|
||||
let response = String::from_utf8(buffer).expect("Failed to convert bytes to string");
|
||||
|
||||
Ok(HttpResponse::Ok()
|
||||
.insert_header(header::ContentType(mime::TEXT_PLAIN))
|
||||
|
Loading…
Reference in New Issue
Block a user