From 6c95b7c6e20467270da26cd5d10111bb9307c065 Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Mon, 15 Jul 2024 14:40:15 +0200 Subject: Add useful aliases for platform properties and dispatch endpoint --- src/buildtool/serve_api/serve_service/target.hpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/buildtool/serve_api/serve_service/target.hpp') 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_{std::make_shared("target-service")}; - // type of dispatch list; reduces verbosity - using dispatch_t = std::vector< - std::pair, 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; + -> expected, ::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 -- cgit v1.2.3