summaryrefslogtreecommitdiff
path: root/src/buildtool/execution_api/execution_service/server_implementation.cpp
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-06-27 12:36:22 +0200
committerMaksim Denisov <denisov.maksim@huawei.com>2024-07-05 12:58:35 +0200
commit0d8a4ad15b93283cc31787b039051b9e9a285ba8 (patch)
tree40efbd2206659d6836ec0b3beec0811d2a01644f /src/buildtool/execution_api/execution_service/server_implementation.cpp
parentf82adab238f4b45d43049687c8e52bf7372ba053 (diff)
downloadjustbuild-0d8a4ad15b93283cc31787b039051b9e9a285ba8.tar.gz
Pass StorageConfig and Storage to ServerImpl
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{};