From dba41282cac86a740c007498709e996b9fa3e59b Mon Sep 17 00:00:00 2001 From: Aria Date: Thu, 19 Oct 2023 21:00:26 +0100 Subject: wip: broadcast message batching --- broadcast/src/msg.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'broadcast/src/msg.rs') diff --git a/broadcast/src/msg.rs b/broadcast/src/msg.rs index c252394..bbe83a4 100644 --- a/broadcast/src/msg.rs +++ b/broadcast/src/msg.rs @@ -11,7 +11,12 @@ pub enum BroadcastBody { Broadcast { msg_id: Option, message: BroadcastTarget, - path: Option>, + }, + + #[serde(rename = "broadcast_batch")] + BroadcastBatch { + msg_id: Option, + messages: Vec, }, #[serde(rename = "broadcast_ok")] -- cgit v1.2.3