mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 20:07:09 +02:00
Don't unwrap in case of error/missing last_update field
This commit is contained in:
parent
71500a4e15
commit
5387cf1718
2 changed files with 10 additions and 13 deletions
|
@ -50,14 +50,10 @@ lazy_static! {
|
|||
&["kind", "value"]
|
||||
)
|
||||
.expect("Can't create a metric");
|
||||
pub static ref MEILISEARCH_LAST_UPDATE: IntGauge = register_int_gauge!(opts!(
|
||||
"meilisearch_last_update",
|
||||
"Meilisearch Last Update"
|
||||
))
|
||||
.expect("Can't create a metric");
|
||||
pub static ref MEILISEARCH_IS_INDEXING: IntGauge = register_int_gauge!(opts!(
|
||||
"meilisearch_is_indexing",
|
||||
"Meilisearch Is Indexing"
|
||||
))
|
||||
.expect("Can't create a metric");
|
||||
pub static ref MEILISEARCH_LAST_UPDATE: IntGauge =
|
||||
register_int_gauge!(opts!("meilisearch_last_update", "Meilisearch Last Update"))
|
||||
.expect("Can't create a metric");
|
||||
pub static ref MEILISEARCH_IS_INDEXING: IntGauge =
|
||||
register_int_gauge!(opts!("meilisearch_is_indexing", "Meilisearch Is Indexing"))
|
||||
.expect("Can't create a metric");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue