summaryrefslogtreecommitdiff
path: root/src/buildtool/execution_api/execution_service/bytestream_server.cpp
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-08-29 11:35:37 +0200
committerMaksim Denisov <denisov.maksim@huawei.com>2024-08-30 17:17:09 +0200
commitd551ef4acdf1732a145724b70f65be5fbe4052b0 (patch)
tree0cd3d2da73907d5d142b6b8c6b92304ed0a9a17e /src/buildtool/execution_api/execution_service/bytestream_server.cpp
parent8520a8fe2b2fc20940ed6457971a8de179343449 (diff)
downloadjustbuild-d551ef4acdf1732a145724b70f65be5fbe4052b0.tar.gz
Replace bazel_re::Digest in LocalCAS::{...}Path
...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.cpp5
1 files changed, 2 insertions, 3 deletions
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<bazel_re::Digest>(dgst));
+ path = storage_.CAS().TreePath(dgst);
}
else {
ArtifactDigest dgst{NativeSupport::Unprefix(*hash), 0, false};
- path =
- storage_.CAS().BlobPath(static_cast<bazel_re::Digest>(dgst), false);
+ path = storage_.CAS().BlobPath(dgst, false);
}
if (not path) {
auto str = fmt::format("could not find {}", *hash);