get connection ownership on wrap

This commit is contained in:
yggverse 2024-11-28 02:31:50 +02:00
parent e437d35acf
commit 1c50fadfde
2 changed files with 11 additions and 8 deletions

View file

@ -82,9 +82,9 @@ impl Client {
move |result| match result {
Ok(connection) => {
match Connection::new_wrap(
&connection,
certificate.as_ref(),
Some(&network_address),
connection,
certificate,
Some(network_address),
) {
Ok(result) => request_async(
result,