Skip to content

Commit

Permalink
fix checks
Browse files Browse the repository at this point in the history
  • Loading branch information
aumetra committed Apr 7, 2024
1 parent 0691c5a commit 0e79574
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions crates/kitsune-service/src/prepare.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use eyre::WrapErr;
use kitsune_cache::{ArcCache, InMemoryCache, NoopCache, RedisCache};
use kitsune_captcha::AnyCaptcha;
use kitsune_captcha::{hcaptcha::Captcha as HCaptcha, mcaptcha::Captcha as MCaptcha};
Expand Down Expand Up @@ -137,10 +136,14 @@ pub async fn search(

#[cfg(feature = "meilisearch")]
#[allow(clippy::used_underscore_binding)]
kitsune_search::MeiliSearchService::new(&_config.instance_url, &_config.api_key)
.await
.wrap_err("Failed to connect to Meilisearch")?
.into()
{
use eyre::WrapErr;

kitsune_search::MeiliSearchService::new(&_config.instance_url, &_config.api_key)
.await
.wrap_err("Failed to connect to Meilisearch")?
.into()
}
}
search::Configuration::Sql => SqlSearchService::builder()
.db_pool(db_pool.clone())
Expand Down

0 comments on commit 0e79574

Please sign in to comment.