From 0d8a4ad15b93283cc31787b039051b9e9a285ba8 Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Thu, 27 Jun 2024 12:36:22 +0200 Subject: Pass StorageConfig and Storage to ServerImpl --- .../execution_service/server_implementation.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/buildtool/execution_api/execution_service/server_implementation.cpp') 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{}; -- cgit v1.2.3