diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-07-15 10:19:16 +0200 |
---|---|---|
committer | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-07-19 09:50:37 +0200 |
commit | a5f048e3b2504959994cc9545a70fde01b70d99a (patch) | |
tree | 42ef3e92abdba766e4c56ed8e0dbfff37de22416 /src/buildtool/execution_api/execution_service/server_implementation.hpp | |
parent | 1acde5fa1f37b8e4856f96aba092a38faaac737f (diff) | |
download | justbuild-a5f048e3b2504959994cc9545a70fde01b70d99a.tar.gz |
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.
Diffstat (limited to 'src/buildtool/execution_api/execution_service/server_implementation.hpp')
-rw-r--r-- | src/buildtool/execution_api/execution_service/server_implementation.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
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 <cstdint> #include <fstream> +#include <optional> #include <string> #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<std::uint8_t> op_exponent) -> bool; ~ServerImpl() = default; private: |