From f0a4d6a51abd1f1477fbd0b53ee14277f0ee921a Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Thu, 6 Feb 2025 11:14:33 +0100 Subject: MessageLimits: Add header guard --- src/buildtool/execution_api/common/message_limits.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (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 5ad1818a..6053b630 100644 --- a/src/buildtool/execution_api/common/message_limits.hpp +++ b/src/buildtool/execution_api/common/message_limits.hpp @@ -12,11 +12,16 @@ // See the License for the specific language governing permissions and // limitations under the License. +#ifndef INCLUDED_SRC_BUILDTOOL_EXECUTION_API_COMMON_MESSAGE_LIMITS_HPP +#define INCLUDED_SRC_BUILDTOOL_EXECUTION_API_COMMON_MESSAGE_LIMITS_HPP + #include #include // Max size for batch transfers -static constexpr std::size_t kMaxBatchTransferSize = 3UL * 1024 * 1024; +inline constexpr std::size_t kMaxBatchTransferSize = 3UL * 1024 * 1024; static_assert(kMaxBatchTransferSize < GRPC_DEFAULT_MAX_RECV_MESSAGE_LENGTH, "Max batch transfer size too large."); + +#endif // INCLUDED_SRC_BUILDTOOL_EXECUTION_API_COMMON_MESSAGE_LIMITS_HPP -- cgit v1.2.3