Formatting

This commit is contained in:
Eelco Dolstra 2023-12-14 21:29:19 +01:00
parent 71157983e3
commit 08cc0812bf
2 changed files with 4 additions and 5 deletions

View file

@ -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 {}))

View file

@ -256,10 +256,7 @@ pub async fn init_cache(
})
}
pub async fn enqueue_paths(
state: &State,
store_paths: Vec<StorePath>,
) -> Result<()> {
pub async fn enqueue_paths(state: &State, store_paths: Vec<StorePath>) -> Result<()> {
state.push_session.queue_many(store_paths).unwrap();
Ok(())