From d551ef4acdf1732a145724b70f65be5fbe4052b0 Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Thu, 29 Aug 2024 11:35:37 +0200 Subject: Replace bazel_re::Digest in LocalCAS::{...}Path ...with ArtifactDigest. --- src/buildtool/execution_api/execution_service/bytestream_server.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/buildtool/execution_api/execution_service/bytestream_server.cpp') diff --git a/src/buildtool/execution_api/execution_service/bytestream_server.cpp b/src/buildtool/execution_api/execution_service/bytestream_server.cpp index 32adba91..0f77542d 100644 --- a/src/buildtool/execution_api/execution_service/bytestream_server.cpp +++ b/src/buildtool/execution_api/execution_service/bytestream_server.cpp @@ -73,12 +73,11 @@ auto BytestreamServiceImpl::Read( if (NativeSupport::IsTree(*hash)) { ArtifactDigest dgst{NativeSupport::Unprefix(*hash), 0, true}; - path = storage_.CAS().TreePath(static_cast(dgst)); + path = storage_.CAS().TreePath(dgst); } else { ArtifactDigest dgst{NativeSupport::Unprefix(*hash), 0, false}; - path = - storage_.CAS().BlobPath(static_cast(dgst), false); + path = storage_.CAS().BlobPath(dgst, false); } if (not path) { auto str = fmt::format("could not find {}", *hash); -- cgit v1.2.3