mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-03-31 09:05:45 +00:00
use common callback
This commit is contained in:
parent
582744f830
commit
83b29c0276
1 changed files with 5 additions and 3 deletions
|
|
@ -82,9 +82,11 @@ impl Client {
|
|||
request,
|
||||
priority,
|
||||
cancellable,
|
||||
move |result| match result {
|
||||
Ok(response) => callback(Ok(response)),
|
||||
Err(e) => callback(Err(Error::Connection(e))),
|
||||
move |result| {
|
||||
callback(match result {
|
||||
Ok(response) => Ok(response),
|
||||
Err(e) => Err(Error::Connection(e)),
|
||||
})
|
||||
},
|
||||
),
|
||||
Err(e) => callback(Err(Error::Connection(e))),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue