diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-09-11 18:03:55 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-09-13 14:41:00 +0200 |
commit | 27a696c4d6d5815b4355d93c767e499028bb7e2f (patch) | |
tree | bb039c8658a9842fc532921584f800767c2cca90 /src/buildtool/execution_api/execution_service/server_implementation.cpp | |
parent | 6fcaec9c6106e10b1f3129cfe0e539a461a87767 (diff) | |
download | justbuild-27a696c4d6d5815b4355d93c767e499028bb7e2f.tar.gz |
Pass HashFunction::Type to CapabilitiesServer
...to get the protocol type.
Diffstat (limited to 'src/buildtool/execution_api/execution_service/server_implementation.cpp')
-rw-r--r-- | src/buildtool/execution_api/execution_service/server_implementation.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/buildtool/execution_api/execution_service/server_implementation.cpp b/src/buildtool/execution_api/execution_service/server_implementation.cpp index e6ad463c..67633b69 100644 --- a/src/buildtool/execution_api/execution_service/server_implementation.cpp +++ b/src/buildtool/execution_api/execution_service/server_implementation.cpp @@ -84,11 +84,13 @@ auto ServerImpl::Run(gsl::not_null<LocalContext const*> const& local_context, gsl::not_null<RemoteContext const*> const& remote_context, ApiBundle const& apis, std::optional<std::uint8_t> op_exponent) -> bool { + auto const hash_type = + local_context->storage_config->hash_function.GetType(); ExecutionServiceImpl es{local_context, &*apis.local, op_exponent}; ActionCacheServiceImpl ac{local_context}; CASServiceImpl cas{local_context}; BytestreamServiceImpl b{local_context}; - CapabilitiesServiceImpl cap{}; + CapabilitiesServiceImpl cap{hash_type}; OperationsServiceImpl op{&es.GetOpCache()}; grpc::ServerBuilder builder; |