refactor(tvix/glue): drop ingest_entries_sync
Make this function async, and do the block_on on the (single) callsite. Change-Id: Ib8b0b54ab5370fe02ef95f38a45d8866868a9d60 Reviewed-on: https://cl.tvl.fyi/c/depot/+/11285 Reviewed-by: Connor Brewster <cbrewster@hey.com> Tested-by: BuildkiteCI
This commit is contained in:
parent
bd32024047
commit
156a5a0fb6
2 changed files with 20 additions and 18 deletions
|
|
@ -102,12 +102,15 @@ async fn filtered_ingest(
|
|||
|
||||
pin_mut!(entries_stream);
|
||||
|
||||
state
|
||||
.ingest_entries_sync(entries_stream)
|
||||
.map_err(|err| ErrorKind::IO {
|
||||
path: Some(path.to_path_buf()),
|
||||
error: err.into(),
|
||||
})
|
||||
state.tokio_handle.block_on(async {
|
||||
state
|
||||
.ingest_entries(entries_stream)
|
||||
.await
|
||||
.map_err(|err| ErrorKind::IO {
|
||||
path: Some(path.to_path_buf()),
|
||||
error: err.into(),
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
#[builtins(state = "Rc<TvixStoreIO>")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue