use synchronous Mutex for resolver cache

Since the lock is not held across await points, the sync Mutex is simpler.
This commit is contained in:
Dirkjan Ochtman
2020-10-14 11:42:24 +02:00
committed by Benjamin Fry
parent 3c0158a9d0
commit 5ea0956819
2 changed files with 15 additions and 29 deletions

View File

@@ -9,9 +9,9 @@
use std::fmt;
use std::future::Future;
use std::net::IpAddr;
use std::sync::Arc;
use std::sync::{Arc, Mutex};
use futures_util::{self, future, lock::Mutex};
use futures_util::{self, future};
use proto::error::ProtoResult;
use proto::op::Query;
use proto::rr::domain::TryParseIp;