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.hpp | |
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.hpp')
-rw-r--r-- | src/buildtool/serve_api/serve_service/target.hpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/buildtool/serve_api/serve_service/target.hpp b/src/buildtool/serve_api/serve_service/target.hpp index 1ce7fad2..aaf9bb39 100644 --- a/src/buildtool/serve_api/serve_service/target.hpp +++ b/src/buildtool/serve_api/serve_service/target.hpp @@ -139,17 +139,13 @@ class TargetService final : public justbuild::just_serve::Target::Service { ServeApi const* const serve_ = nullptr; std::shared_ptr<Logger> logger_{std::make_shared<Logger>("target-service")}; - // type of dispatch list; reduces verbosity - using dispatch_t = std::vector< - std::pair<std::map<std::string, std::string>, ServerAddress>>; - /// \brief Get from remote and parse the endpoint configuration. The method /// also ensures the content has the expected format. /// \returns The dispatch list stored as JSON object on success or an /// unexpected error as grpc::Status. [[nodiscard]] auto GetDispatchList( ArtifactDigest const& dispatch_digest) noexcept - -> expected<dispatch_t, ::grpc::Status>; + -> expected<std::vector<DispatchEndpoint>, ::grpc::Status>; /// \brief Handles the processing of the log after a failed analysis or /// build. Will populate the response as needed and set the status to be |