about summary refs log tree commit diff
path: root/tvix/glue/src/builtins/import.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tvix/glue/src/builtins/import.rs')
-rw-r--r--tvix/glue/src/builtins/import.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/tvix/glue/src/builtins/import.rs b/tvix/glue/src/builtins/import.rs
index 08f8a40636ae..50b99690eefd 100644
--- a/tvix/glue/src/builtins/import.rs
+++ b/tvix/glue/src/builtins/import.rs
@@ -133,7 +133,12 @@ mod import_builtins {
         let name = tvix_store::import::path_to_name(&p)?;
 
         Ok(state
-            .register_node_in_path_info_service_sync(name, &p, root_node)
+            .tokio_handle
+            .block_on(async {
+                state
+                    .register_node_in_path_info_service(name, &p, root_node)
+                    .await
+            })
             .map_err(|err| ErrorKind::IO {
                 path: Some(p.to_path_buf()),
                 error: err.into(),