diff options
author | Florian Klink <flokli@flokli.de> | 2024-12-09T09·13+0200 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2024-12-09T14·51+0000 |
commit | 5b278cc6abc9fbfc02f80f907ea31e93aa455519 (patch) | |
tree | 10b81d86492496fc9c3784c8a7990589f602d9e5 | |
parent | 8f134350205962f5d6a550e6a20957bed62bdad9 (diff) |
refactor(nix-compat/nix-daemon): s/result/results/ r/8989
There's more than one result in there. Change-Id: I5d519db51fda050ed293bfb52215a643882e0116 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12879 Tested-by: BuildkiteCI Autosubmit: flokli <flokli@flokli.de> Reviewed-by: Ilan Joselevich <personal@ilanjoselevich.com>
-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()) } } |