fix: all heartbeat channel need to check leader (#5593)

This commit is contained in:
jeremyhi
2025-02-25 18:45:30 +08:00
committed by GitHub
parent 3f6a41eac5
commit 5ed09c4584

View File

@@ -23,8 +23,8 @@ pub struct CheckLeaderHandler;
#[async_trait::async_trait]
impl HeartbeatHandler for CheckLeaderHandler {
fn is_acceptable(&self, role: Role) -> bool {
role == Role::Datanode
fn is_acceptable(&self, _role: Role) -> bool {
true
}
async fn handle(