From 5f0360c566a8c3a6ebfea1c3b2ddb068ebba4859 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Fri, 5 Jan 2024 17:03:13 +0200 Subject: 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 Autosubmit: flokli Tested-by: BuildkiteCI --- tvix/cli/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tvix/cli/src/main.rs') diff --git a/tvix/cli/src/main.rs b/tvix/cli/src/main.rs index acaf5c7eab..d7878c9a09 100644 --- a/tvix/cli/src/main.rs +++ b/tvix/cli/src/main.rs @@ -94,7 +94,7 @@ fn interpret(code: &str, path: Option, 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(), ))); -- cgit 1.4.1