diff options
Diffstat (limited to 'src/buildtool/graph_traverser/graph_traverser.hpp')
-rw-r--r-- | src/buildtool/graph_traverser/graph_traverser.hpp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/buildtool/graph_traverser/graph_traverser.hpp b/src/buildtool/graph_traverser/graph_traverser.hpp index 301ef722..50eb95c5 100644 --- a/src/buildtool/graph_traverser/graph_traverser.hpp +++ b/src/buildtool/graph_traverser/graph_traverser.hpp @@ -355,8 +355,7 @@ class GraphTraverser { DependencyGraph const& g, std::vector<ArtifactIdentifier> const& artifact_ids) const -> bool { Executor executor{repo_config_, - &*apis_.local, - &*apis_.remote, + &apis_, &remote_context_, apis_.hash_function, stats_, @@ -383,15 +382,8 @@ class GraphTraverser { [[nodiscard]] auto TraverseRebuild( DependencyGraph const& g, std::vector<ArtifactIdentifier> const& artifact_ids) const -> bool { - // setup rebuilder with api for cache endpoint - auto api_cached = - apis_.MakeRemote(remote_context_.exec_config->cache_address, - remote_context_.auth, - remote_context_.retry_config); Rebuilder executor{repo_config_, - &*apis_.local, - &*apis_.remote, - &*api_cached, + &apis_, &remote_context_, apis_.hash_function, stats_, |