Some cleanups for utpex

This commit is contained in:
Igor Katson 2024-08-25 12:53:28 +01:00
parent 5e09525dd5
commit 90bfb85bcc
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
5 changed files with 56 additions and 132 deletions

View file

@ -251,7 +251,7 @@ impl<H: PeerConnectionHandler> PeerConnection<H> {
let my_extended = Message::Extended(ExtendedMessage::Handshake(my_extended));
trace!("sending extended handshake: {:?}", &my_extended);
my_extended
.serialize(&mut write_buf, &|| Default::default())
.serialize(&mut write_buf, &Default::default)
.unwrap();
with_timeout(rwtimeout, conn.write_all(&write_buf))
.await