diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-07-25 17:02:03 +0200 |
---|---|---|
committer | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-07-30 12:10:06 +0200 |
commit | b5a92a60035ea3731a96bbdc8bca18986b558a05 (patch) | |
tree | 088d85e95d929b31cf74afb1a922b34c4afa7138 /src/buildtool/graph_traverser/graph_traverser.hpp | |
parent | deba068d8692bf6d265926885de5601d72f5d461 (diff) | |
download | justbuild-b5a92a60035ea3731a96bbdc8bca18986b558a05.tar.gz |
Pass RemoteContext to ApiBundle
The CreateRemote method is also updated to receive all
remote-related information as arguments, such that it does not have
to rely on the ApiBundle internal fields which will eventually be
removed.
Diffstat (limited to 'src/buildtool/graph_traverser/graph_traverser.hpp')
-rw-r--r-- | src/buildtool/graph_traverser/graph_traverser.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/buildtool/graph_traverser/graph_traverser.hpp b/src/buildtool/graph_traverser/graph_traverser.hpp index b10427cd..fce9b7d4 100644 --- a/src/buildtool/graph_traverser/graph_traverser.hpp +++ b/src/buildtool/graph_traverser/graph_traverser.hpp @@ -391,7 +391,9 @@ class GraphTraverser { DependencyGraph const& g, std::vector<ArtifactIdentifier> const& artifact_ids) const -> bool { // setup rebuilder with api for cache endpoint - auto api_cached = apis_.CreateRemote(apis_.remote_config.cache_address); + auto api_cached = apis_.CreateRemote(apis_.remote_config.cache_address, + &apis_.auth, + &apis_.retry_config); Rebuilder executor{repo_config_, &*apis_.local, &*apis_.remote, |