diff options
author | Sascha Roloff <sascha.roloff@huawei.com> | 2024-02-23 15:46:48 +0100 |
---|---|---|
committer | Sascha Roloff <sascha.roloff@huawei.com> | 2024-02-26 17:16:21 +0100 |
commit | 25ef9672988f008e61193228756dcfed069bda57 (patch) | |
tree | 946dfd5472d4228832c019204304d004a097d936 /src/buildtool/execution_api/execution_service/capabilities_server.cpp | |
parent | 1debca0855d2e4ae8cf08498148831124b65bd9e (diff) | |
download | justbuild-25ef9672988f008e61193228756dcfed069bda57.tar.gz |
Implement blob chunking algorithm negotiation
Diffstat (limited to 'src/buildtool/execution_api/execution_service/capabilities_server.cpp')
-rw-r--r-- | src/buildtool/execution_api/execution_service/capabilities_server.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/buildtool/execution_api/execution_service/capabilities_server.cpp b/src/buildtool/execution_api/execution_service/capabilities_server.cpp index 35126bd3..22209524 100644 --- a/src/buildtool/execution_api/execution_service/capabilities_server.cpp +++ b/src/buildtool/execution_api/execution_service/capabilities_server.cpp @@ -37,6 +37,9 @@ auto CapabilitiesServiceImpl::GetCapabilities( cache.set_max_batch_total_size_bytes(kMaxBatchTransferSize); static_assert(kMaxBatchTransferSize < GRPC_DEFAULT_MAX_RECV_MESSAGE_LENGTH, "Max batch transfer size too large."); + cache.add_supported_chunking_algorithms( + ::bazel_re::ChunkingAlgorithm_Value:: + ChunkingAlgorithm_Value_FASTCDC_MT0_8KB); *(response->mutable_cache_capabilities()) = cache; exec.set_digest_function( |