Skip to content

Commit

Permalink
use AFIT instead of async_trait 4
Browse files Browse the repository at this point in the history
  • Loading branch information
sunli829 committed Mar 23, 2024
1 parent e501b2c commit 955d973
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion poem/src/listener/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,12 @@ impl<A: Acceptor> DynAcceptor for ToDynAcceptor<A> {
impl Acceptor for dyn DynAcceptor + '_ {
type Io = BoxIo;

#[inline]
fn local_addr(&self) -> Vec<LocalAddr> {
todo!()
DynAcceptor::local_addr(self)
}

#[inline]
async fn accept(&mut self) -> IoResult<(BoxIo, LocalAddr, RemoteAddr, Scheme)> {
DynAcceptor::accept(self).await
}
Expand Down

0 comments on commit 955d973

Please sign in to comment.