From 938b29d418a9df2f93ee273a394f34adc99ea25d Mon Sep 17 00:00:00 2001 From: hozan23 Date: Sat, 18 Nov 2023 13:36:19 +0300 Subject: net: improve Conn API --- p2p/src/message.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'p2p/src/message.rs') diff --git a/p2p/src/message.rs b/p2p/src/message.rs index d3691c2..9e73809 100644 --- a/p2p/src/message.rs +++ b/p2p/src/message.rs @@ -10,7 +10,7 @@ use crate::{protocol::ProtocolID, routing_table::Entry, utils::VersionInt, PeerI pub const MSG_HEADER_SIZE: usize = 6; /// The maximum allowed size for a message in bytes. -pub const MAX_ALLOWED_MSG_SIZE: u32 = 1000000; +pub const MAX_ALLOWED_MSG_SIZE: u32 = 1024 * 1024; // 1MB /// Defines the main message in the karyon p2p network. /// -- cgit v1.2.3