From 62358bd31c096efc2037d371f614dd0633f13774 Mon Sep 17 00:00:00 2001 From: James Date: Tue, 14 Feb 2023 17:29:38 +0000 Subject: [PATCH] Fix metrics feature As reported the metrics feature was broken by still using and old reference to `meilisearch_auth::actions`. This commit switches to the new location, `meilisearch_types::keys::actions`. Resolves: #3469 See also: #2763 --- meilisearch/src/route_metrics.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meilisearch/src/route_metrics.rs b/meilisearch/src/route_metrics.rs index c1d35cf8d..96f0b223d 100644 --- a/meilisearch/src/route_metrics.rs +++ b/meilisearch/src/route_metrics.rs @@ -4,9 +4,9 @@ use actix_web::dev::{self, Service, ServiceRequest, ServiceResponse, Transform}; use actix_web::http::header; use actix_web::{Error, HttpResponse}; use futures_util::future::LocalBoxFuture; -use meilisearch_auth::actions; use meilisearch_lib::MeiliSearch; use meilisearch_types::error::ResponseError; +use meilisearch_types::keys::actions; use prometheus::{Encoder, HistogramTimer, TextEncoder}; use crate::extractors::authentication::policies::ActionPolicy;