summaryrefslogtreecommitdiff
path: root/src/buildtool/execution_api/remote/bazel/bazel_api.cpp
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-07-16 17:42:40 +0200
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-07-19 09:50:37 +0200
commit4e2e6585441cc69b2c2ebc29b9ca95e1804b5053 (patch)
tree67a093af0987a6347a50a0d04cbd6c382ca70957 /src/buildtool/execution_api/remote/bazel/bazel_api.cpp
parentf2af767908e42013664e30ec40c431c41a6895c1 (diff)
downloadjustbuild-4e2e6585441cc69b2c2ebc29b9ca95e1804b5053.tar.gz
Pass RetryConfig instance to BazelApi
Diffstat (limited to 'src/buildtool/execution_api/remote/bazel/bazel_api.cpp')
-rw-r--r--src/buildtool/execution_api/remote/bazel/bazel_api.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buildtool/execution_api/remote/bazel/bazel_api.cpp b/src/buildtool/execution_api/remote/bazel/bazel_api.cpp
index fd109003..f3635a5f 100644
--- a/src/buildtool/execution_api/remote/bazel/bazel_api.cpp
+++ b/src/buildtool/execution_api/remote/bazel/bazel_api.cpp
@@ -27,7 +27,6 @@
#include "fmt/core.h"
#include "src/buildtool/auth/authentication.hpp"
#include "src/buildtool/common/bazel_types.hpp"
-#include "src/buildtool/common/remote/retry_config.hpp"
#include "src/buildtool/compatibility/compatibility.hpp"
#include "src/buildtool/execution_api/bazel_msg/bazel_blob_container.hpp"
#include "src/buildtool/execution_api/bazel_msg/bazel_common.hpp"
@@ -193,9 +192,10 @@ BazelApi::BazelApi(std::string const& instance_name,
std::string const& host,
Port port,
gsl::not_null<Auth const*> const& auth,
+ gsl::not_null<RetryConfig const*> const& retry_config,
ExecutionConfiguration const& exec_config) noexcept {
network_ = std::make_shared<BazelNetwork>(
- instance_name, host, port, auth, &RetryConfig::Instance(), exec_config);
+ instance_name, host, port, auth, retry_config, exec_config);
}
// implement move constructor in cpp, where all members are complete types