diff --git a/magic-nix-cache/src/api.rs b/magic-nix-cache/src/api.rs index 299f040..ff04c87 100644 --- a/magic-nix-cache/src/api.rs +++ b/magic-nix-cache/src/api.rs @@ -119,7 +119,9 @@ async fn enqueue_paths( .collect(); if let Some(flakehub_state) = &*state.flakehub_state.read().await { - crate::flakehub::enqueue_paths(flakehub_state, store_paths).await.unwrap(); + crate::flakehub::enqueue_paths(flakehub_state, store_paths) + .await + .unwrap(); } Ok(Json(EnqueuePathsResponse {})) diff --git a/magic-nix-cache/src/flakehub.rs b/magic-nix-cache/src/flakehub.rs index 43c92d5..958f639 100644 --- a/magic-nix-cache/src/flakehub.rs +++ b/magic-nix-cache/src/flakehub.rs @@ -256,10 +256,7 @@ pub async fn init_cache( }) } -pub async fn enqueue_paths( - state: &State, - store_paths: Vec, -) -> Result<()> { +pub async fn enqueue_paths(state: &State, store_paths: Vec) -> Result<()> { state.push_session.queue_many(store_paths).unwrap(); Ok(())