From e3e4c26343c897e1f1c8c13b2c3a8ae317a26f19 Mon Sep 17 00:00:00 2001
From: Zekun Li
Date: Thu, 31 Aug 2023 17:43:32 -0700
Subject: [PATCH] [consensus] fix the re-broadcast condition
---
consensus/src/experimental/buffer_manager.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/consensus/src/experimental/buffer_manager.rs b/consensus/src/experimental/buffer_manager.rs
index 0076f1d9150c3..b4935b44d42bc 100644
--- a/consensus/src/experimental/buffer_manager.rs
+++ b/consensus/src/experimental/buffer_manager.rs
@@ -588,7 +588,7 @@ impl BufferManager {
// We'll try to re-initiate the broadcast after 30s.
Some((start_time, _)) => {
start_time.elapsed()
- < Duration::from_millis(COMMIT_VOTE_REBROADCAST_INTERVAL_MS)
+ >= Duration::from_millis(COMMIT_VOTE_REBROADCAST_INTERVAL_MS)
},
};
if re_broadcast {