diff --git a/openraft/src/raft/mod.rs b/openraft/src/raft/mod.rs index 19d03ab43..fd1dc350f 100644 --- a/openraft/src/raft/mod.rs +++ b/openraft/src/raft/mod.rs @@ -952,7 +952,7 @@ where C: RaftTypeConfig #[since(version = "0.10.0")] pub fn external_state_machine_request(&self, req: F) where - SM: 'static, + SM: RaftStateMachine, F: FnOnce(&mut SM) -> BoxFuture<()> + OptionalSend + 'static, { let input_sm_type = std::any::type_name::();