fix one small bug

This commit is contained in:
Tamo 2021-10-29 16:46:00 +02:00 committed by marin postma
parent 2665c0099d
commit bd49d1c4b5
No known key found for this signature in database
GPG Key ID: 6088B7721C3E39F9

View File

@ -50,7 +50,7 @@ async fn main() -> anyhow::Result<()> {
let (analytics, user) = if !opt.no_analytics {
analytics::SegmentAnalytics::new(&opt, &meilisearch).await
} else {
analytics::create_(&opt)
analytics::MockAnalytics::new(&opt)
};
#[cfg(any(debug_assertions, not(feature = "analytics")))]
let (analytics, user) = analytics::MockAnalytics::new(&opt);