mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-03-25 06:00:54 +03:00
Split tasks - event loop now properly asynchronous (#57)
DNS, etc. does no longer block the event loop
This commit is contained in:
committed by
GitHub
parent
1cefa38543
commit
cdd3a3b818
@@ -3,7 +3,7 @@ use std::{error::Error, net::IpAddr};
|
||||
|
||||
use trust_dns_resolver::TokioAsyncResolver;
|
||||
|
||||
pub(crate) struct DnsResolver {
|
||||
pub struct DnsResolver {
|
||||
resolver: TokioAsyncResolver,
|
||||
}
|
||||
impl DnsResolver {
|
||||
|
||||
Reference in New Issue
Block a user