summaryrefslogtreecommitdiff
path: root/src/buildtool/serve_api/serve_service
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2025-06-23 12:00:03 +0200
committerOliver Reiche <oliver.reiche@huawei.com>2025-06-24 12:56:57 +0200
commitc49f9e8a16997d7dc4cad691a249741146101be0 (patch)
tree8e3112e5831a13ce1558bc039ea8ca85f42a8799 /src/buildtool/serve_api/serve_service
parent778656381c8c05d88453140612b4053dbc2ce787 (diff)
downloadjustbuild-c49f9e8a16997d7dc4cad691a249741146101be0.tar.gz
ExecutionService: Use LocalApi directly
Diffstat (limited to 'src/buildtool/serve_api/serve_service')
-rw-r--r--src/buildtool/serve_api/serve_service/serve_server_implementation.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/buildtool/serve_api/serve_service/serve_server_implementation.cpp b/src/buildtool/serve_api/serve_service/serve_server_implementation.cpp
index f8c391b6..e9905a6e 100644
--- a/src/buildtool/serve_api/serve_service/serve_server_implementation.cpp
+++ b/src/buildtool/serve_api/serve_service/serve_server_implementation.cpp
@@ -184,7 +184,9 @@ auto ServeServerImpl::Run(
// the user has not given any remote-execution endpoint
// so we start a "just-execute instance" on the same process
[[maybe_unused]] ExecutionServiceImpl es{
- local_context, &*apis.local, op_exponent};
+ local_context,
+ dynamic_cast<LocalApi const*>(&*apis.local),
+ op_exponent};
[[maybe_unused]] ActionCacheServiceImpl ac{local_context};
[[maybe_unused]] CASServiceImpl cas{local_context};
[[maybe_unused]] BytestreamServiceImpl b{local_context};