remove extra comment

This commit is contained in:
yggverse 2024-12-01 10:52:25 +02:00
parent 4c0fea0e99
commit e9d51697bd

View file

@ -65,12 +65,9 @@ impl Client {
Some(&cancellable.clone()), Some(&cancellable.clone()),
move |result| match result { move |result| match result {
Ok(socket_connection) => { Ok(socket_connection) => {
// Wrap required connection dependencies into the struct holder
match Connection::new(socket_connection, certificate, Some(network_address)) match Connection::new(socket_connection, certificate, Some(network_address))
{ {
Ok(connection) => { Ok(connection) => connection.request_async(
// Begin new request
connection.request_async(
uri.to_string(), uri.to_string(),
priority, priority,
cancellable, cancellable,
@ -78,8 +75,7 @@ impl Client {
Ok(response) => callback(Ok(response)), Ok(response) => callback(Ok(response)),
Err(e) => callback(Err(Error::Connection(e))), Err(e) => callback(Err(Error::Connection(e))),
}, },
) ),
}
Err(e) => callback(Err(Error::Connection(e))), Err(e) => callback(Err(Error::Connection(e))),
} }
} }