summaryrefslogtreecommitdiff
path: root/src/buildtool/execution_api/execution_service/execution_server.cpp
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-08-29 13:49:58 +0200
committerMaksim Denisov <denisov.maksim@huawei.com>2024-08-30 17:17:09 +0200
commitace40adf1ed751072bc858d40c08f8f56340b592 (patch)
tree5196e496cd238b9c60ac8bf6c9df59ae1ea1e9ba /src/buildtool/execution_api/execution_service/execution_server.cpp
parent0df9bfcbcda9f87097bd313819be0be2cf5fa892 (diff)
downloadjustbuild-ace40adf1ed751072bc858d40c08f8f56340b592.tar.gz
Replace bazel_re::Digest in LocalAC
...with ArtifactDigest.
Diffstat (limited to 'src/buildtool/execution_api/execution_service/execution_server.cpp')
-rw-r--r--src/buildtool/execution_api/execution_service/execution_server.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/buildtool/execution_api/execution_service/execution_server.cpp b/src/buildtool/execution_api/execution_service/execution_server.cpp
index b862a03d..c89f06fe 100644
--- a/src/buildtool/execution_api/execution_service/execution_server.cpp
+++ b/src/buildtool/execution_api/execution_service/execution_server.cpp
@@ -19,8 +19,8 @@
#include <string>
#include <utility>
-#include "execution_server.hpp"
#include "fmt/core.h"
+#include "src/buildtool/common/artifact_digest.hpp"
#include "src/buildtool/execution_api/execution_service/operation_cache.hpp"
#include "src/buildtool/execution_api/local/local_cas_reader.hpp"
#include "src/buildtool/file_system/file_system_manager.hpp"
@@ -212,8 +212,9 @@ auto ExecutionServiceImpl::Execute(
// Store the result in action cache
if (i_execution_response->ExitCode() == 0 and not action->do_not_cache()) {
+ ArtifactDigest const a_digest{request->action_digest()};
if (not storage_.ActionCache().StoreResult(
- request->action_digest(), execute_response->result())) {
+ a_digest, execute_response->result())) {
auto const str =
fmt::format("Could not store action result for action {}",
request->action_digest().hash());