summaryrefslogtreecommitdiff
path: root/src/buildtool/execution_api/common/api_bundle.hpp
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-07-12 16:20:01 +0200
committerMaksim Denisov <denisov.maksim@huawei.com>2024-07-22 17:02:34 +0200
commit39b80d92da47fe0ff22b6c0dc8d872cbe7d53a21 (patch)
tree925330473b7752bf315d5169350fac638ebfe1ab /src/buildtool/execution_api/common/api_bundle.hpp
parentcfdd16c676250a5d9776292e4aef0d112e0e3cfb (diff)
downloadjustbuild-39b80d92da47fe0ff22b6c0dc8d872cbe7d53a21.tar.gz
Use HashFunction from StorageConfig in ApiBundle
Diffstat (limited to 'src/buildtool/execution_api/common/api_bundle.hpp')
-rw-r--r--src/buildtool/execution_api/common/api_bundle.hpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/buildtool/execution_api/common/api_bundle.hpp b/src/buildtool/execution_api/common/api_bundle.hpp
index 5414423e..baa4594b 100644
--- a/src/buildtool/execution_api/common/api_bundle.hpp
+++ b/src/buildtool/execution_api/common/api_bundle.hpp
@@ -23,6 +23,7 @@
#include "src/buildtool/common/remote/remote_common.hpp"
#include "src/buildtool/common/remote/retry_config.hpp"
#include "src/buildtool/common/repository_config.hpp"
+#include "src/buildtool/crypto/hash_function.hpp"
#include "src/buildtool/execution_api/common/execution_api.hpp"
#include "src/buildtool/execution_api/local/config.hpp"
#include "src/buildtool/execution_api/remote/config.hpp"
@@ -45,10 +46,14 @@ struct ApiBundle final {
[[nodiscard]] auto CreateRemote(std::optional<ServerAddress> const& address)
const -> gsl::not_null<IExecutionApi::Ptr>;
- gsl::not_null<IExecutionApi::Ptr> const local; // needed by remote
- Auth const& auth; // needed by remote
- RetryConfig const& retry_config; // needed by remote
+ // Needed to be set before creating the remote (via CreateRemote)
+ Auth const& auth;
+ RetryConfig const& retry_config;
RemoteExecutionConfig const& remote_config;
+ HashFunction const hash_function;
+ // 7 bytes of alignment.
+
+ gsl::not_null<IExecutionApi::Ptr> const local;
gsl::not_null<IExecutionApi::Ptr> const remote;
};