mirror of
https://github.com/tower-rs/tower.git
synced 2025-09-30 06:21:17 +00:00
service: Call inner.poll_ready() in docs when cloning inner (#679)
- The documentation should call self.inner.poll_ready() in the Wrapper::poll_ready() call to emphasize that self.inner may only be ready on the original instance and not a clone of inner.
This commit is contained in:
parent
19c1a1dbb8
commit
8805309486
@ -260,7 +260,7 @@ use std::task::{Context, Poll};
|
||||
/// type Future = Pin<Box<dyn Future<Output = Result<Self::Response, Self::Error>>>>;
|
||||
///
|
||||
/// fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> {
|
||||
/// Poll::Ready(Ok(()))
|
||||
/// self.inner.poll_ready(cx)
|
||||
/// }
|
||||
///
|
||||
/// fn call(&mut self, req: R) -> Self::Future {
|
||||
@ -295,7 +295,7 @@ use std::task::{Context, Poll};
|
||||
/// type Future = Pin<Box<dyn Future<Output = Result<Self::Response, Self::Error>>>>;
|
||||
///
|
||||
/// fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> {
|
||||
/// Poll::Ready(Ok(()))
|
||||
/// self.inner.poll_ready(cx)
|
||||
/// }
|
||||
///
|
||||
/// fn call(&mut self, req: R) -> Self::Future {
|
||||
|
Loading…
x
Reference in New Issue
Block a user