mirror of
https://github.com/edu4rdshl/rusolver.git
synced 2026-07-17 23:24:55 +00:00
Avoid allocating domain_data everytime as it has the Clone trait.
Signed-off-by: Edu4rdSHL <edu4rdshl@protonmail.com>
This commit is contained in:
parent
ba828758d9
commit
e26ae062d6
1 changed files with 2 additions and 2 deletions
|
|
@ -72,9 +72,9 @@ pub async fn return_hosts_data(
|
|||
trustable_resolver.ipv4_lookup(host.trim_end_matches('.').to_owned() + ".");
|
||||
let wildcard_ips = wildcard_ips.clone();
|
||||
|
||||
async move {
|
||||
let mut domain_data = DomainData::default();
|
||||
|
||||
async move {
|
||||
if let Ok(ip) = resolver_fut.await {
|
||||
if disable_double_check {
|
||||
domain_data.ipv4_addresses = ip
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue