diff options
Diffstat (limited to 'src/buildtool/serve_api/remote/serve_api.hpp')
-rw-r--r-- | src/buildtool/serve_api/remote/serve_api.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/buildtool/serve_api/remote/serve_api.hpp b/src/buildtool/serve_api/remote/serve_api.hpp index ee60f4f1..64e39092 100644 --- a/src/buildtool/serve_api/remote/serve_api.hpp +++ b/src/buildtool/serve_api/remote/serve_api.hpp @@ -104,13 +104,13 @@ class ServeApi final { return stc_.ServeForeignFileTree(content, name, executable); } - [[nodiscard]] auto ContentInRemoteCAS( - std::string const& content) const noexcept -> bool { + [[nodiscard]] auto ContentInRemoteCAS(std::string const& content) + const noexcept -> expected<ArtifactDigest, GitLookupError> { return stc_.ServeContent(content); } - [[nodiscard]] auto TreeInRemoteCAS( - std::string const& tree_id) const noexcept -> bool { + [[nodiscard]] auto TreeInRemoteCAS(std::string const& tree_id) + const noexcept -> expected<ArtifactDigest, GitLookupError> { return stc_.ServeTree(tree_id); } |