From 714b0ce1b5b1cbbae5e3d25d6858fe55f126fa5f Mon Sep 17 00:00:00 2001 From: ehds Date: Wed, 10 Apr 2024 14:52:10 +0800 Subject: [PATCH] fix mock fsm on_leader_stop signature --- test/util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/util.h b/test/util.h index 5cbcf241..6aa1a6b9 100644 --- a/test/util.h +++ b/test/util.h @@ -83,7 +83,7 @@ class MockFSM : public braft::StateMachine { _on_leader_start_closure = NULL; } } - void on_leader_stop(const braft::LeaderChangeContext&) { + void on_leader_stop(const butil::Status&) { _leader_term = -1; }