diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2025-02-06 12:29:25 +0100 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2025-02-10 17:59:50 +0100 |
commit | 092884739888fdf4688e9273310f587e037ac07d (patch) | |
tree | 9ae43ad3c563f68f8bb2da3dc47d56ccd2eb9cc6 /src/buildtool/execution_api/common/message_limits.hpp | |
parent | e67f08133d54d1b51f00f22540917e56825e88de (diff) | |
download | justbuild-092884739888fdf4688e9273310f587e037ac07d.tar.gz |
Rename kMaxBatchTransferSize to MessageLimits::kMaxGrpcLength
Diffstat (limited to 'src/buildtool/execution_api/common/message_limits.hpp')
-rw-r--r-- | src/buildtool/execution_api/common/message_limits.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
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 <cstddef> -// 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 |