diff options
author | Alberto Sartori <alberto.sartori@huawei.com> | 2023-02-23 16:31:02 +0100 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2023-02-28 15:00:02 +0100 |
commit | 815ef5d2d6355f2ca65ddcd33c7af674c0edbca7 (patch) | |
tree | 0092b2fa9dcdeea216fba5271f9dc381869255c6 /src/buildtool/execution_api/execution_service/cas_server.hpp | |
parent | 1bdb8c73ed93ad0fafde553047e52388d64cab6f (diff) | |
download | justbuild-815ef5d2d6355f2ca65ddcd33c7af674c0edbca7.tar.gz |
execution service: BatchUpdateBlobs check consitency of requested digests
Diffstat (limited to 'src/buildtool/execution_api/execution_service/cas_server.hpp')
-rw-r--r-- | src/buildtool/execution_api/execution_service/cas_server.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/buildtool/execution_api/execution_service/cas_server.hpp b/src/buildtool/execution_api/execution_service/cas_server.hpp index e0ef0267..b3c11706 100644 --- a/src/buildtool/execution_api/execution_service/cas_server.hpp +++ b/src/buildtool/execution_api/execution_service/cas_server.hpp @@ -115,6 +115,10 @@ class CASServiceImpl final -> ::grpc::Status override; private: + [[nodiscard]] auto CheckDigestConsistency(std::string const& ref, + std::string const& computed) + const noexcept -> std::optional<std::string>; + LocalStorage storage_{}; Logger logger_{"execution-service"}; }; |