summaryrefslogtreecommitdiff
path: root/src/buildtool/execution_api/execution_service/server_implementation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildtool/execution_api/execution_service/server_implementation.cpp')
-rw-r--r--src/buildtool/execution_api/execution_service/server_implementation.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/buildtool/execution_api/execution_service/server_implementation.cpp b/src/buildtool/execution_api/execution_service/server_implementation.cpp
index 676bd0a7..42cb6242 100644
--- a/src/buildtool/execution_api/execution_service/server_implementation.cpp
+++ b/src/buildtool/execution_api/execution_service/server_implementation.cpp
@@ -53,11 +53,13 @@ auto TryWrite(std::string const& file, T const& content) noexcept -> bool {
}
} // namespace
-auto ServerImpl::Run(ApiBundle const& apis) -> bool {
- ExecutionServiceImpl es{&*apis.local};
- ActionCacheServiceImpl ac{};
- CASServiceImpl cas{};
- BytestreamServiceImpl b{};
+auto ServerImpl::Run(StorageConfig const& storage_config,
+ Storage const& storage,
+ ApiBundle const& apis) -> bool {
+ ExecutionServiceImpl es{&storage_config, &storage, &*apis.local};
+ ActionCacheServiceImpl ac{&storage_config, &storage};
+ CASServiceImpl cas{&storage_config, &storage};
+ BytestreamServiceImpl b{&storage_config, &storage};
CapabilitiesServiceImpl cap{};
OperarationsServiceImpl op{};