remove resolver wrapper; use std mutex

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-07-03 01:24:16 +00:00
parent be2d1c722b
commit 7658387a74
5 changed files with 47 additions and 20 deletions

View file

@ -105,9 +105,10 @@ where
if response.is_ok() && !actual.cached {
services()
.globals
.actual_destinations()
.resolver
.destinations
.write()
.await
.expect("locked for writing")
.insert(OwnedServerName::from(dest), (actual.dest.clone(), actual.host.clone()));
}