summaryrefslogtreecommitdiff
path: root/src/buildtool/serve_api/remote/target_client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildtool/serve_api/remote/target_client.cpp')
-rw-r--r--src/buildtool/serve_api/remote/target_client.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/buildtool/serve_api/remote/target_client.cpp b/src/buildtool/serve_api/remote/target_client.cpp
index 67b50a84..97bb53c1 100644
--- a/src/buildtool/serve_api/remote/target_client.cpp
+++ b/src/buildtool/serve_api/remote/target_client.cpp
@@ -29,7 +29,7 @@ TargetClient::TargetClient(std::string const& server, Port port) noexcept {
}
auto TargetClient::ServeTarget(const TargetCacheKey& key,
- const std::string& repo_key) noexcept
+ const std::string& repo_key) const noexcept
-> std::optional<serve_target_result_t> {
// make sure the blob containing the key is in the remote cas
if (!local_api_->RetrieveToCas({key.Id()}, &*remote_api_)) {
@@ -169,8 +169,8 @@ auto TargetClient::ServeTarget(const TargetCacheKey& key,
auto TargetClient::ServeTargetVariables(std::string const& target_root_id,
std::string const& target_file,
- std::string const& target) noexcept
- -> std::optional<std::vector<std::string>> {
+ std::string const& target)
+ const noexcept -> std::optional<std::vector<std::string>> {
justbuild::just_serve::ServeTargetVariablesRequest request{};
request.set_root_tree(target_root_id);
request.set_target_file(target_file);
@@ -197,10 +197,10 @@ auto TargetClient::ServeTargetVariables(std::string const& target_root_id,
return res;
}
-auto TargetClient::ServeTargetDescription(std::string const& target_root_id,
- std::string const& target_file,
- std::string const& target) noexcept
- -> std::optional<ArtifactDigest> {
+auto TargetClient::ServeTargetDescription(
+ std::string const& target_root_id,
+ std::string const& target_file,
+ std::string const& target) const noexcept -> std::optional<ArtifactDigest> {
justbuild::just_serve::ServeTargetDescriptionRequest request{};
request.set_root_tree(target_root_id);
request.set_target_file(target_file);