diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-07-15 14:40:15 +0200 |
---|---|---|
committer | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-07-16 17:51:12 +0200 |
commit | 6c95b7c6e20467270da26cd5d10111bb9307c065 (patch) | |
tree | 7646515782153e60427ee8a07532b2df07e7e012 /src/buildtool/serve_api/serve_service/target.cpp | |
parent | 978de9de55d9592c258052dd52dc25c788a89d78 (diff) | |
download | justbuild-6c95b7c6e20467270da26cd5d10111bb9307c065.tar.gz |
Add useful aliases for platform properties and dispatch endpoint
Diffstat (limited to 'src/buildtool/serve_api/serve_service/target.cpp')
-rw-r--r-- | src/buildtool/serve_api/serve_service/target.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buildtool/serve_api/serve_service/target.cpp b/src/buildtool/serve_api/serve_service/target.cpp index 3ee2a3b1..6cae3d8b 100644 --- a/src/buildtool/serve_api/serve_service/target.cpp +++ b/src/buildtool/serve_api/serve_service/target.cpp @@ -46,7 +46,7 @@ auto TargetService::GetDispatchList( ArtifactDigest const& dispatch_digest) noexcept - -> expected<dispatch_t, ::grpc::Status> { + -> expected<std::vector<DispatchEndpoint>, ::grpc::Status> { // get blob from remote cas auto const& dispatch_info = Artifact::ObjectInfo{.digest = dispatch_digest, .type = ObjectType::File}; @@ -142,7 +142,7 @@ auto TargetService::ServeTarget( // Important: we will need to pass these platform properties also to the // executor (via the graph_traverser) in order for the build to be properly // dispatched to the correct remote-execution endpoint. - auto platform_properties = std::map<std::string, std::string>{}; + auto platform_properties = ExecutionProperties{}; for (auto const& p : request->execution_properties()) { platform_properties[p.name()] = p.value(); } |