diff options
-rw-r--r-- | tvix/nix-compat/src/nix_daemon/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tvix/nix-compat/src/nix_daemon/mod.rs b/tvix/nix-compat/src/nix_daemon/mod.rs index 11d236a6a321..4e41700a8f5e 100644 --- a/tvix/nix-compat/src/nix_daemon/mod.rs +++ b/tvix/nix-compat/src/nix_daemon/mod.rs @@ -48,10 +48,10 @@ pub trait NixDaemonIO: Sync { // The only reason query_path_info can fail is due to transient IO errors, // so we return such errors to the client as opposed to only returning paths // that succeeded. - let result = + let results = try_join_all(request.paths.iter().map(|path| self.query_path_info(path))).await?; - let result: Vec<UnkeyedValidPathInfo> = result.into_iter().flatten().collect(); - Ok(result) + + Ok(results.into_iter().flatten().collect()) } } |