mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 04:17:10 +02:00
rename the metrics cli flag
This commit is contained in:
parent
68e30214ca
commit
88a18677d0
3 changed files with 14 additions and 9 deletions
|
@ -83,11 +83,11 @@ pub fn create_app(
|
|||
analytics.clone(),
|
||||
)
|
||||
})
|
||||
.configure(|cfg| routes::configure(cfg, opt.enable_metrics_route))
|
||||
.configure(|cfg| routes::configure(cfg, opt.experimental_enable_metrics))
|
||||
.configure(|s| dashboard(s, enable_dashboard));
|
||||
|
||||
let app = app.wrap(actix_web::middleware::Condition::new(
|
||||
opt.enable_metrics_route,
|
||||
opt.experimental_enable_metrics,
|
||||
middleware::RouteMetrics,
|
||||
));
|
||||
app.wrap(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue