Remove useless parameter

This commit is contained in:
Mubelotix
2025-08-26 11:02:47 +02:00
parent 4290901dea
commit 857bdffb1a

View File

@ -87,7 +87,7 @@ pub async fn start(
let mut meilisearch = command.spawn().context("Error starting Meilisearch")?; let mut meilisearch = command.spawn().context("Error starting Meilisearch")?;
wait_for_health(client, &mut meilisearch, &workload.assets, asset_folder).await?; wait_for_health(client, &mut meilisearch, asset_folder).await?;
Ok(meilisearch) Ok(meilisearch)
} }
@ -95,11 +95,10 @@ pub async fn start(
async fn wait_for_health( async fn wait_for_health(
client: &Client, client: &Client,
meilisearch: &mut tokio::process::Child, meilisearch: &mut tokio::process::Child,
assets: &BTreeMap<String, Asset>,
asset_folder: &str, asset_folder: &str,
) -> anyhow::Result<()> { ) -> anyhow::Result<()> {
for i in 0..100 { for i in 0..100 {
let res = run_command(client, &health_command(), assets, asset_folder, false).await; let res = run_command(client, &health_command(), &BTreeMap::new(), asset_folder, false).await;
if res.is_ok() { if res.is_ok() {
// check that this is actually the current Meilisearch instance that answered us // check that this is actually the current Meilisearch instance that answered us
if let Some(exit_code) = if let Some(exit_code) =