diff --git a/meilisearch-http/src/analytics/segment_analytics.rs b/meilisearch-http/src/analytics/segment_analytics.rs index 7d7ceb08e..e4dfac217 100644 --- a/meilisearch-http/src/analytics/segment_analytics.rs +++ b/meilisearch-http/src/analytics/segment_analytics.rs @@ -26,6 +26,7 @@ use tokio::sync::mpsc::{self, Receiver, Sender}; use uuid::Uuid; use crate::analytics::Analytics; +use crate::option::default_http_addr; use crate::routes::indexes::documents::UpdateDocumentsQuery; use crate::Opt; diff --git a/meilisearch-http/src/option.rs b/meilisearch-http/src/option.rs index ebe5a7293..65e3c8381 100644 --- a/meilisearch-http/src/option.rs +++ b/meilisearch-http/src/option.rs @@ -465,7 +465,7 @@ fn default_db_path() -> PathBuf { PathBuf::from(DEFAULT_DB_PATH) } -fn default_http_addr() -> String { +pub fn default_http_addr() -> String { DEFAULT_HTTP_ADDR.to_string() }