mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-03-31 17:15:31 +00:00
remove extra comment
This commit is contained in:
parent
4c0fea0e99
commit
e9d51697bd
1 changed files with 9 additions and 13 deletions
|
|
@ -65,21 +65,17 @@ 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
|
uri.to_string(),
|
||||||
connection.request_async(
|
priority,
|
||||||
uri.to_string(),
|
cancellable,
|
||||||
priority,
|
move |result| match result {
|
||||||
cancellable,
|
Ok(response) => callback(Ok(response)),
|
||||||
move |result| match result {
|
Err(e) => callback(Err(Error::Connection(e))),
|
||||||
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))),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue