From 78884caca030104557ca277dd3a41cefb70f5be8 Mon Sep 17 00:00:00 2001 From: hozan23 Date: Wed, 15 Nov 2023 17:16:39 +0300 Subject: improve the TaskGroup API the TaskGroup now holds an Executor instead of passing it when calling its spawn method also, define a global executor `Executor<'static>` and use static lifetime instead of a lifetime placeholder This improvement simplify the code for spawning a new task. There is no need to pass the executor around. --- 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 cdb9837..d3691c2 100644 --- a/p2p/src/message.rs +++ b/p2p/src/message.rs @@ -12,7 +12,7 @@ pub const MSG_HEADER_SIZE: usize = 6; /// The maximum allowed size for a message in bytes. pub const MAX_ALLOWED_MSG_SIZE: u32 = 1000000; -/// Defines the main message in the Karyon P2P network. +/// Defines the main message in the karyon p2p network. /// /// This message structure consists of a header and payload, where the header /// typically contains essential information about the message, and the payload -- cgit v1.2.3