From d1c10d6d681fab4d47615abb49cee6faed13d859 Mon Sep 17 00:00:00 2001 From: Fall1ngStar Date: Thu, 6 Oct 2022 22:42:20 -0400 Subject: [PATCH] Fix segment_analytics default_http_addr import --- meilisearch-http/src/analytics/segment_analytics.rs | 1 + meilisearch-http/src/option.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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() }