From a5f048e3b2504959994cc9545a70fde01b70d99a Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Mon, 15 Jul 2024 10:19:16 +0200 Subject: Make OperationCache a general class, not singleton As it is used by just execute only, instantiate it inside the ExecutionServer, which reads and writes to the cache map, and pass a const ref to OperationsServer, which only queries. --- .../execution_api/execution_service/server_implementation.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/buildtool/execution_api/execution_service/server_implementation.hpp') diff --git a/src/buildtool/execution_api/execution_service/server_implementation.hpp b/src/buildtool/execution_api/execution_service/server_implementation.hpp index ecddb8bc..97264fe1 100644 --- a/src/buildtool/execution_api/execution_service/server_implementation.hpp +++ b/src/buildtool/execution_api/execution_service/server_implementation.hpp @@ -15,7 +15,9 @@ #ifndef SERVER_IMPLEMENATION_HPP #define SERVER_IMPLEMENATION_HPP +#include #include +#include #include #include "src/buildtool/execution_api/common/api_bundle.hpp" @@ -51,7 +53,8 @@ class ServerImpl { auto Run(StorageConfig const& storage_config, Storage const& storage, - ApiBundle const& apis) -> bool; + ApiBundle const& apis, + std::optional op_exponent) -> bool; ~ServerImpl() = default; private: -- cgit v1.2.3