From ece772d2b36c0b7505bc50cdad7922205e3322c9 Mon Sep 17 00:00:00 2001 From: chubei <914745487@qq.com> Date: Wed, 27 Sep 2023 16:26:33 +0800 Subject: [PATCH] fix: typo pool -> poll --- dozer-api/src/grpc/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dozer-api/src/grpc/mod.rs b/dozer-api/src/grpc/mod.rs index b56696921c..aaa46b9ea7 100644 --- a/dozer-api/src/grpc/mod.rs +++ b/dozer-api/src/grpc/mod.rs @@ -68,7 +68,7 @@ impl + Unpin> ShutdownAddrStream { } } - fn pool_impl( + fn poll_impl( self: Pin<&mut Self>, cx: &mut Context<'_>, func: fn(Pin<&mut AddrStream>, &mut Context<'_>) -> Poll>, @@ -112,11 +112,11 @@ impl + Unpin> AsyncWrite for ShutdownAddrStream { } fn poll_flush(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll> { - 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> { - self.pool_impl(cx, AsyncWrite::poll_shutdown) + self.poll_impl(cx, AsyncWrite::poll_shutdown) } }