diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2023-10-09 15:30:31 +0200 |
---|---|---|
committer | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2023-11-02 12:06:50 +0100 |
commit | 47eeba4a4a7302662f4c39ebcc8e15a7876f8227 (patch) | |
tree | 03a261af2d0ca532607c1e949a344799bee1d02a /src/buildtool/serve_api/remote/serve_api.cpp | |
parent | c1a58d73d2fa21f9c692bbe3895443d3afc43d1d (diff) | |
download | justbuild-47eeba4a4a7302662f4c39ebcc8e15a7876f8227.tar.gz |
just serve: Fix inconsistencies
- add missing serve_api TARGETS file
- rename service client to align with server naming scheme
- fix inconsistencies in comments between implementation and protocol
Diffstat (limited to 'src/buildtool/serve_api/remote/serve_api.cpp')
-rw-r--r-- | src/buildtool/serve_api/remote/serve_api.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buildtool/serve_api/remote/serve_api.cpp b/src/buildtool/serve_api/remote/serve_api.cpp index 7b57d7d0..0b0493d7 100644 --- a/src/buildtool/serve_api/remote/serve_api.cpp +++ b/src/buildtool/serve_api/remote/serve_api.cpp @@ -15,7 +15,7 @@ #include "src/buildtool/serve_api/remote/serve_api.hpp" ServeApi::ServeApi(std::string const& host, Port port) noexcept - : tlc_{std::make_unique<ServeTargetLevelCacheClient>(host, port)} {} + : stc_{std::make_unique<SourceTreeClient>(host, port)} {} // implement move constructor in cpp, where all members are complete types ServeApi::ServeApi(ServeApi&& other) noexcept = default; @@ -27,5 +27,5 @@ auto ServeApi::RetrieveTreeFromCommit(std::string const& commit, std::string const& subdir, bool sync_tree) -> std::optional<std::string> { - return tlc_->ServeCommitTree(commit, subdir, sync_tree); + return stc_->ServeCommitTree(commit, subdir, sync_tree); } |