summaryrefslogtreecommitdiff
path: root/src/buildtool/execution_api/common
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2025-02-06 11:14:33 +0100
committerMaksim Denisov <denisov.maksim@huawei.com>2025-02-10 17:59:50 +0100
commitf0a4d6a51abd1f1477fbd0b53ee14277f0ee921a (patch)
tree7834dafdd714de0ff32e7d3ac1d27a1faba9ed00 /src/buildtool/execution_api/common
parent9f270cf4acc3c2b1db4ae76cfc34a162b19f3d1e (diff)
downloadjustbuild-f0a4d6a51abd1f1477fbd0b53ee14277f0ee921a.tar.gz
MessageLimits: Add header guard
Diffstat (limited to 'src/buildtool/execution_api/common')
-rw-r--r--src/buildtool/execution_api/common/message_limits.hpp7
1 files changed, 6 insertions, 1 deletions
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 <cstddef>
#include <grpc/grpc.h>
// 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