mirror of
https://github.com/DNSCrypt/doh-server.git
synced 2025-04-03 04:57:37 +03:00
current_thread::run() -> current_thread::block_on_all()
This commit is contained in:
parent
ac93dde788
commit
f6dec35145
1 changed files with 1 additions and 3 deletions
|
@ -204,9 +204,7 @@ fn main() {
|
|||
current_thread::spawn(client_fut.map(|_| {}).map_err(|_| {}));
|
||||
Ok(())
|
||||
});
|
||||
current_thread::run(|_| {
|
||||
current_thread::spawn(fut.map_err(|_| {}));
|
||||
})
|
||||
current_thread::block_on_all(fut).unwrap();
|
||||
}
|
||||
|
||||
fn parse_opts(doh: &mut DoH) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue