From 092884739888fdf4688e9273310f587e037ac07d Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Thu, 6 Feb 2025 12:29:25 +0100 Subject: Rename kMaxBatchTransferSize to MessageLimits::kMaxGrpcLength --- src/buildtool/execution_api/common/message_limits.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/buildtool/execution_api/common/message_limits.hpp') diff --git a/src/buildtool/execution_api/common/message_limits.hpp b/src/buildtool/execution_api/common/message_limits.hpp index c2b1b5f7..65b747a2 100644 --- a/src/buildtool/execution_api/common/message_limits.hpp +++ b/src/buildtool/execution_api/common/message_limits.hpp @@ -17,7 +17,9 @@ #include -// Max size for batch transfers -inline constexpr std::size_t kMaxBatchTransferSize = 3UL * 1024 * 1024; +struct MessageLimits final { + // Maximum length of a gprc message. + static constexpr std::size_t kMaxGrpcLength = 3UL * 1024 * 1024; +}; #endif // INCLUDED_SRC_BUILDTOOL_EXECUTION_API_COMMON_MESSAGE_LIMITS_HPP -- cgit v1.2.3