refactor(nix-compat/nix-daemon): s/result/results/

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>
This commit is contained in:
Florian Klink 2024-12-09 11:13:23 +02:00 committed by clbot
parent 8f13435020
commit 5b278cc6ab

View file

@ -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())
}
}