diff --git a/openraft/src/testing/runtime/mod.rs b/openraft/src/testing/runtime/mod.rs index 9416108f3..d1270b914 100644 --- a/openraft/src/testing/runtime/mod.rs +++ b/openraft/src/testing/runtime/mod.rs @@ -359,7 +359,7 @@ impl Suite { } } -/// A helper function to peek a future's state. +/// Polls the future, and returns its current state. fn poll_in_place(fut: Pin<&mut F>) -> Poll { let waker = futures::task::noop_waker(); let mut cx = futures::task::Context::from_waker(&waker);