From 4b6e257263f7bb6eaebb9be672f88bda85c77586 Mon Sep 17 00:00:00 2001 From: Aria Date: Fri, 20 Oct 2023 00:33:52 +0100 Subject: broadcast batching with minimal set of messages needed --- broadcast/src/batch.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'broadcast/src/batch.rs') diff --git a/broadcast/src/batch.rs b/broadcast/src/batch.rs index d69771d..42cc3b8 100644 --- a/broadcast/src/batch.rs +++ b/broadcast/src/batch.rs @@ -50,6 +50,7 @@ impl MessageBatch { self.first_added .elapsed() .saturating_sub(self.max_message_delay) + .saturating_sub(Duration::from_millis(10)) } pub fn broadcast( -- cgit v1.2.3