From cd190489b165882f9634e2d281058bbd56fb15ea Mon Sep 17 00:00:00 2001 From: Steve Lau Date: Fri, 26 Jul 2024 15:37:40 +0800 Subject: [PATCH] Doc: update doc of Raft::external_request() --- openraft/src/raft/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openraft/src/raft/mod.rs b/openraft/src/raft/mod.rs index b73310021..af238eee3 100644 --- a/openraft/src/raft/mod.rs +++ b/openraft/src/raft/mod.rs @@ -768,9 +768,9 @@ where C: RaftTypeConfig /// Send a request to the Raft core loop in a fire-and-forget manner. /// - /// The request functor will be called with a mutable reference to both the state machine - /// and the network factory and serialized with other Raft core loop processing (e.g., client - /// requests or general state changes). The current state of the system is passed as well. + /// The request functor will be called with an immutable reference to the [`RaftState`] + /// and serialized with other Raft core loop processing (e.g., client requests + /// or general state changes). /// /// If a response is required, then the caller can store the sender of a one-shot channel /// in the closure of the request functor, which can then be used to send the response