diff options
Diffstat (limited to 'src/buildtool/execution_api/common/message_limits.hpp')
-rw-r--r-- | src/buildtool/execution_api/common/message_limits.hpp | 7 |
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 |