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/TARGETS | |
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/TARGETS')
-rw-r--r-- | src/buildtool/execution_api/execution_service/TARGETS | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/buildtool/execution_api/execution_service/TARGETS b/src/buildtool/execution_api/execution_service/TARGETS index caaf2b7d..7d82602c 100644 --- a/src/buildtool/execution_api/execution_service/TARGETS +++ b/src/buildtool/execution_api/execution_service/TARGETS @@ -6,7 +6,8 @@ , "proto": [["@", "bazel_remote_apis", "", "remote_execution_proto"]] , "stage": ["src", "buildtool", "execution_api", "execution_service"] , "deps": - [ ["@", "gsl", "", "gsl"] + [ "operation_cache" + , ["@", "gsl", "", "gsl"] , ["src/buildtool/execution_api/common", "common"] , ["src/buildtool/logging", "logging"] , ["src/buildtool/common", "bazel_types"] @@ -141,7 +142,11 @@ , "name": ["operations_server"] , "hdrs": ["operations_server.hpp"] , "srcs": ["operations_server.cpp"] - , "deps": [["src/buildtool/logging", "logging"]] + , "deps": + [ "operation_cache" + , ["@", "gsl", "", "gsl"] + , ["src/buildtool/logging", "logging"] + ] , "proto": [["@", "googleapis", "", "google_longrunning_operations_proto"]] , "stage": ["src", "buildtool", "execution_api", "execution_service"] , "private-deps": |