Skip to content

Commit

Permalink
fix: typo pool -> poll
Browse files Browse the repository at this point in the history
  • Loading branch information
chubei committed Sep 27, 2023
1 parent 8e9d322 commit ece772d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dozer-api/src/grpc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ impl<F: Future<Output = ()> + Unpin> ShutdownAddrStream<F> {
}
}

fn pool_impl<T>(
fn poll_impl<T>(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
func: fn(Pin<&mut AddrStream>, &mut Context<'_>) -> Poll<io::Result<T>>,
Expand Down Expand Up @@ -112,11 +112,11 @@ impl<F: Future<Output = ()> + Unpin> AsyncWrite for ShutdownAddrStream<F> {
}

fn poll_flush(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<(), io::Error>> {
self.pool_impl(cx, AsyncWrite::poll_flush)
self.poll_impl(cx, AsyncWrite::poll_flush)
}

fn poll_shutdown(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<(), io::Error>> {
self.pool_impl(cx, AsyncWrite::poll_shutdown)
self.poll_impl(cx, AsyncWrite::poll_shutdown)
}
}

Expand Down

0 comments on commit ece772d

Please sign in to comment.