diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-07-23 18:20:44 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-08-30 17:17:09 +0200 |
commit | 0df9bfcbcda9f87097bd313819be0be2cf5fa892 (patch) | |
tree | bcffd45a05d8994b2e6e5bd9cd5b157eb69802c3 /src/buildtool/execution_api/execution_service/bytestream_server.cpp | |
parent | d84ab0c8f1e0df651c2d1f6cd9f4bdc03c25932c (diff) | |
download | justbuild-0df9bfcbcda9f87097bd313819be0be2cf5fa892.tar.gz |
Replace bazel_re::Digest in CASUtils
...with ArtifactDigest
Diffstat (limited to 'src/buildtool/execution_api/execution_service/bytestream_server.cpp')
-rw-r--r-- | src/buildtool/execution_api/execution_service/bytestream_server.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buildtool/execution_api/execution_service/bytestream_server.cpp b/src/buildtool/execution_api/execution_service/bytestream_server.cpp index 0f77542d..1b2aad14 100644 --- a/src/buildtool/execution_api/execution_service/bytestream_server.cpp +++ b/src/buildtool/execution_api/execution_service/bytestream_server.cpp @@ -172,8 +172,8 @@ auto BytestreamServiceImpl::Write( } ArtifactDigest dgst{NativeSupport::Unprefix(*hash), 0, true}; - if (auto err = CASUtils::EnsureTreeInvariant( - static_cast<bazel_re::Digest>(dgst), *content, storage_)) { + if (auto err = + CASUtils::EnsureTreeInvariant(dgst, *content, storage_)) { auto const str = fmt::format("Write: {}", *std::move(err)); logger_.Emit(LogLevel::Error, "{}", str); return ::grpc::Status{grpc::StatusCode::FAILED_PRECONDITION, str}; |