Fix compile error on unix
Some checks failed
Build library & run tests / build (unix) (push) Failing after 27s
Build library & run tests / build (tcp) (push) Successful in 29s

This commit is contained in:
Kodi Craft 2024-06-24 15:38:55 +02:00
parent cd2cf3346f
commit fc570fa0bd
Signed by: kodi
GPG Key ID: 69D9EED60B242822

View File

@ -282,7 +282,7 @@ fn derive_protocol(input: proc_macro2::TokenStream) -> proc_macro2::TokenStream
#listener_statement #listener_statement
loop { loop {
let (stream, _) = listener.accept().await?; let (stream, _) = listener.accept().await?;
#info("Accepted connection from {}", stream.peer_addr()?); #info("Accepted connection from {:?}", stream.peer_addr()?);
let self_clone = self.clone(); let self_clone = self.clone();
let run_task = tokio::spawn(async move { let run_task = tokio::spawn(async move {
self_clone.run(stream).await; self_clone.run(stream).await;