summaryrefslogtreecommitdiff
path: root/broadcast/src/msg.rs
diff options
context:
space:
mode:
authorAria <me@aria.rip>2023-10-19 21:00:26 +0100
committerAria <me@aria.rip>2023-10-19 21:00:26 +0100
commitdba41282cac86a740c007498709e996b9fa3e59b (patch)
tree5d9309962f55ca00be6fee3b7ac24b7314e86f2a /broadcast/src/msg.rs
parent07e2085190e30010ad595369a07842413bacd3d1 (diff)
wip: broadcast message batching
Diffstat (limited to 'broadcast/src/msg.rs')
-rw-r--r--broadcast/src/msg.rs7
1 files changed, 6 insertions, 1 deletions
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<MessageID>,
message: BroadcastTarget,
- path: Option<Vec<String>>,
+ },
+
+ #[serde(rename = "broadcast_batch")]
+ BroadcastBatch {
+ msg_id: Option<MessageID>,
+ messages: Vec<BroadcastTarget>,
},
#[serde(rename = "broadcast_ok")]