diff options
author | Florian Klink <flokli@flokli.de> | 2024-01-05T15·03+0200 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2024-01-05T16·49+0000 |
commit | 5f0360c566a8c3a6ebfea1c3b2ddb068ebba4859 (patch) | |
tree | db346406659690f33b2d9ecae32c88cfa2c3461a /tvix/cli/src | |
parent | 4284cd82ef8465feb3c69a02f456949dd7a0f30c (diff) |
refactor(tvix/glue): simplify TvixStoreIO further r/7352
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
Diffstat (limited to 'tvix/cli/src')
-rw-r--r-- | tvix/cli/src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tvix/cli/src/main.rs b/tvix/cli/src/main.rs index acaf5c7eabfd..d7878c9a09b7 100644 --- a/tvix/cli/src/main.rs +++ b/tvix/cli/src/main.rs @@ -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(), ))); |