diff options
author | Alberto Sartori <alberto.sartori@huawei.com> | 2023-10-05 18:22:39 +0200 |
---|---|---|
committer | Alberto Sartori <alberto.sartori@huawei.com> | 2023-10-06 12:34:23 +0200 |
commit | f0fe744acf283ee027e8483d00fdb65263aac698 (patch) | |
tree | 4a9252092d4ef7e775186ce5b4efe1d4e011b9f3 /src/buildtool/serve_api/serve_service/source_tree.hpp | |
parent | 863827868f7ae64b71af20367b9068e53478c033 (diff) | |
download | justbuild-f0fe744acf283ee027e8483d00fdb65263aac698.tar.gz |
CreateExecutionApi: define a new library to avoid code duplication
Diffstat (limited to 'src/buildtool/serve_api/serve_service/source_tree.hpp')
-rw-r--r-- | src/buildtool/serve_api/serve_service/source_tree.hpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/buildtool/serve_api/serve_service/source_tree.hpp b/src/buildtool/serve_api/serve_service/source_tree.hpp index 0bdf48b8..089844a1 100644 --- a/src/buildtool/serve_api/serve_service/source_tree.hpp +++ b/src/buildtool/serve_api/serve_service/source_tree.hpp @@ -24,6 +24,7 @@ #include "gsl/gsl" #include "justbuild/just_serve/just_serve.grpc.pb.h" #include "src/buildtool/common/remote/remote_common.hpp" +#include "src/buildtool/execution_api/common/create_execution_api.hpp" #include "src/buildtool/execution_api/common/execution_api.hpp" #include "src/buildtool/execution_api/remote/config.hpp" #include "src/buildtool/logging/logger.hpp" @@ -57,10 +58,6 @@ class SourceTreeService final gsl::not_null<IExecutionApi::Ptr> const local_api_{ CreateExecutionApi(std::nullopt)}; - [[nodiscard]] static auto CreateExecutionApi( - std::optional<ServerAddress> const& address) - -> gsl::not_null<IExecutionApi::Ptr>; - [[nodiscard]] static auto GetTreeFromCommit( std::filesystem::path const& repo_path, std::string const& commit, |