···11open Cohttp_lwt
2233module Handle = struct
44- let dns_client = Dns_client_unix.create ()
44+ let dns_client = Dns_client_lwt.create (Happy_eyeballs_lwt.create ())
5566 let resolve_well_known handle =
77 try%lwt
···24242525 let resolve_dns handle =
2626 try%lwt
2727- match
2828- Dns_client_unix.getaddrinfo dns_client Dns.Rr_map.Txt
2727+ let%lwt result =
2828+ Dns_client_lwt.getaddrinfo dns_client Dns.Rr_map.Txt
2929 (Domain_name.of_string_exn ("_atproto." ^ handle))
3030- with
3030+ in
3131+ match result with
3132 | Ok (_, t) -> (
3233 let txt = Dns.Rr_map.Txt_set.choose t in
3334 match String.split_on_char '=' txt with