From 27a696c4d6d5815b4355d93c767e499028bb7e2f Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Wed, 11 Sep 2024 18:03:55 +0200 Subject: Pass HashFunction::Type to CapabilitiesServer ...to get the protocol type. --- .../execution_api/execution_service/server_implementation.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (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 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 const& local_context, gsl::not_null const& remote_context, ApiBundle const& apis, std::optional 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; -- cgit v1.2.3