diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-07-08 15:07:36 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-07-22 17:01:13 +0200 |
commit | f94b4663dc61a2987912faa3f1cd71378db0ad33 (patch) | |
tree | 24da5b6ff3868130d273f88417fed933c79e86a4 /src/buildtool/execution_api/remote/bazel/bazel_api.cpp | |
parent | de112e6af5267a78f9b48a8b049e3c86ee95376e (diff) | |
download | justbuild-f94b4663dc61a2987912faa3f1cd71378db0ad33.tar.gz |
Pass HashFunction to BazelNetwork
Diffstat (limited to 'src/buildtool/execution_api/remote/bazel/bazel_api.cpp')
-rw-r--r-- | src/buildtool/execution_api/remote/bazel/bazel_api.cpp | 10 |
1 files changed, 8 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 f3635a5f..f4751df3 100644 --- a/src/buildtool/execution_api/remote/bazel/bazel_api.cpp +++ b/src/buildtool/execution_api/remote/bazel/bazel_api.cpp @@ -28,6 +28,7 @@ #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,8 +195,13 @@ BazelApi::BazelApi(std::string const& instance_name, 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, retry_config, exec_config); + network_ = std::make_shared<BazelNetwork>(instance_name, + host, + port, + auth, + retry_config, + exec_config, + HashFunction::Instance()); } // implement move constructor in cpp, where all members are complete types |