remove resolver wrapper; use std mutex
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
be2d1c722b
commit
7658387a74
5 changed files with 47 additions and 20 deletions
|
@ -47,9 +47,10 @@ pub(crate) async fn get_actual_dest(server_name: &ServerName) -> Result<ActualDe
|
|||
let cached;
|
||||
let cached_result = services()
|
||||
.globals
|
||||
.actual_destinations()
|
||||
.resolver
|
||||
.destinations
|
||||
.read()
|
||||
.await
|
||||
.expect("locked for reading")
|
||||
.get(server_name)
|
||||
.cloned();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue