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:
parent
8f13435020
commit
5b278cc6ab
1 changed files with 3 additions and 3 deletions
|
@ -48,10 +48,10 @@ pub trait NixDaemonIO: Sync {
|
||||||
// The only reason query_path_info can fail is due to transient IO errors,
|
// 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
|
// so we return such errors to the client as opposed to only returning paths
|
||||||
// that succeeded.
|
// that succeeded.
|
||||||
let result =
|
let results =
|
||||||
try_join_all(request.paths.iter().map(|path| self.query_path_info(path))).await?;
|
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())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue