summaryrefslogtreecommitdiff
path: root/src/buildtool/execution_api/execution_service/bytestream_server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildtool/execution_api/execution_service/bytestream_server.cpp')
-rw-r--r--src/buildtool/execution_api/execution_service/bytestream_server.cpp4
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};