diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-07-08 16:50:01 +0200 |
---|---|---|
committer | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-07-16 17:51:12 +0200 |
commit | de3ef374983d987d8ffd8e8516a4877fe68b3e4e (patch) | |
tree | c430a4e73e8ce33e796b5e67eda577bf0b22178a /src/buildtool/serve_api/remote/target_client.cpp | |
parent | 57b7ec186b740b94df030e2f064c28148dd30749 (diff) | |
download | justbuild-de3ef374983d987d8ffd8e8516a4877fe68b3e4e.tar.gz |
Use RemoteExecutionConfig instances stored in ApiBundle
...wherever an ApiBundle is already being passed.
Diffstat (limited to 'src/buildtool/serve_api/remote/target_client.cpp')
-rw-r--r-- | src/buildtool/serve_api/remote/target_client.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buildtool/serve_api/remote/target_client.cpp b/src/buildtool/serve_api/remote/target_client.cpp index fd886254..d36b518e 100644 --- a/src/buildtool/serve_api/remote/target_client.cpp +++ b/src/buildtool/serve_api/remote/target_client.cpp @@ -60,7 +60,7 @@ auto TargetClient::ServeTarget(const TargetCacheKey& key, request.mutable_target_cache_key_id()->CopyFrom(key_dgst); // add execution properties to request - for (auto const& [k, v] : RemoteExecutionConfig::PlatformProperties()) { + for (auto const& [k, v] : apis_.remote_config.PlatformProperties()) { auto* prop = request.add_execution_properties(); prop->set_name(k); prop->set_value(v); @@ -71,7 +71,7 @@ auto TargetClient::ServeTarget(const TargetCacheKey& key, auto dispatch_list = nlohmann::json::array(); try { for (auto const& [props, endpoint] : - RemoteExecutionConfig::DispatchList()) { + apis_.remote_config.DispatchList()) { auto entry = nlohmann::json::array(); entry.push_back(nlohmann::json(props)); entry.push_back(endpoint.ToJson()); |