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:

committed by
Benjamin Fry

parent
3c0158a9d0
commit
5ea0956819
@@ -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;
|
||||
|
Reference in New Issue
Block a user