refactor(tvix/glue): simplify TvixStoreIO further
We don't need to spawn in all these places, we can just block_on directly, this is all IO bound. This also means, we don't need to clone any of the service handles (except preserving clone-ability of the BlobService). Change-Id: I7d90f4d6a263a98491caa071ada538a5197a5472 Reviewed-on: https://cl.tvl.fyi/c/depot/+/10540 Reviewed-by: raitobezarius <tvl@lahfa.xyz> Autosubmit: flokli <flokli@flokli.de> Tested-by: BuildkiteCI
This commit is contained in:
parent
4284cd82ef
commit
5f0360c566
2 changed files with 44 additions and 46 deletions
|
|
@ -94,7 +94,7 @@ fn interpret(code: &str, path: Option<PathBuf>, args: &Args, explain: bool) -> b
|
|||
eval.io_handle = Box::new(tvix_glue::tvix_io::TvixIO::new(TvixStoreIO::new(
|
||||
blob_service,
|
||||
directory_service,
|
||||
path_info_service.into(), // we need an Arc<_> here.
|
||||
path_info_service,
|
||||
tokio_runtime.handle().clone(),
|
||||
)));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue