summaryrefslogtreecommitdiff
path: root/src/buildtool/execution_api/remote/bazel/bazel_api.cpp
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-07-19 12:14:28 +0200
committerMaksim Denisov <denisov.maksim@huawei.com>2024-07-22 17:01:13 +0200
commit9a9409e44b8ad5a68f38f918e5e026875732b574 (patch)
tree6a86cdfc8a6f29ea51e26464fb6bd71649adfd48 /src/buildtool/execution_api/remote/bazel/bazel_api.cpp
parent792751a72f86360afd12158e9eedc00e88db13a6 (diff)
downloadjustbuild-9a9409e44b8ad5a68f38f918e5e026875732b574.tar.gz
Pass HashFunction 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.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/buildtool/execution_api/remote/bazel/bazel_api.cpp b/src/buildtool/execution_api/remote/bazel/bazel_api.cpp
index f4751df3..d3dc1b2f 100644
--- a/src/buildtool/execution_api/remote/bazel/bazel_api.cpp
+++ b/src/buildtool/execution_api/remote/bazel/bazel_api.cpp
@@ -28,7 +28,6 @@
#include "src/buildtool/auth/authentication.hpp"
#include "src/buildtool/common/bazel_types.hpp"
#include "src/buildtool/compatibility/compatibility.hpp"
-#include "src/buildtool/crypto/hash_function.hpp"
#include "src/buildtool/execution_api/bazel_msg/bazel_blob_container.hpp"
#include "src/buildtool/execution_api/bazel_msg/bazel_common.hpp"
#include "src/buildtool/execution_api/bazel_msg/bazel_msg_factory.hpp"
@@ -194,14 +193,15 @@ BazelApi::BazelApi(std::string const& instance_name,
Port port,
gsl::not_null<Auth const*> const& auth,
gsl::not_null<RetryConfig const*> const& retry_config,
- ExecutionConfiguration const& exec_config) noexcept {
+ ExecutionConfiguration const& exec_config,
+ HashFunction hash_function) noexcept {
network_ = std::make_shared<BazelNetwork>(instance_name,
host,
port,
auth,
retry_config,
exec_config,
- HashFunction::Instance());
+ hash_function);
}
// implement move constructor in cpp, where all members are complete types