diff options
author | Sascha Roloff <sascha.roloff@huawei.com> | 2022-07-11 19:55:10 +0200 |
---|---|---|
committer | Sascha Roloff <sascha.roloff@huawei.com> | 2022-08-05 14:41:31 +0200 |
commit | ee6f54124360d8a72b9b545dcc581f3c80d3c8a9 (patch) | |
tree | 20ab0e5e0e8132c30da0f99c401750d712fe00d0 /src/buildtool/execution_engine/executor | |
parent | 76c17ffa9e079fdd3d2a7159c02a1d9593e11930 (diff) | |
download | justbuild-ee6f54124360d8a72b9b545dcc581f3c80d3c8a9.tar.gz |
Modified artifact digest to provide wire digest on demand
Diffstat (limited to 'src/buildtool/execution_engine/executor')
-rw-r--r-- | src/buildtool/execution_engine/executor/executor.hpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/buildtool/execution_engine/executor/executor.hpp b/src/buildtool/execution_engine/executor/executor.hpp index 9e83129a..721d4896 100644 --- a/src/buildtool/execution_engine/executor/executor.hpp +++ b/src/buildtool/execution_engine/executor/executor.hpp @@ -221,9 +221,7 @@ class ExecutorImpl { if (not content.has_value()) { return std::nullopt; } - auto digest = - ArtifactDigest{HashFunction::ComputeBlobHash(*content).HexString(), - content->size()}; + auto digest = ArtifactDigest::Create(*content); if (not api->Upload( BlobContainer{{BazelBlob{digest, std::move(*content)}}})) { return std::nullopt; |