Skip to content

Commit

Permalink
adapt to API changes of mirage-conduit (dns resolver now has a timeout)
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesm committed May 12, 2020
1 parent cc67529 commit 315a4ee
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,10 @@
(>= 4.08))
logs
mirage-channel
conduit-mirage
(conduit-mirage (>= 2.2.0))
dns-client
mirage-random
mirage-time
mirage-clock
mirage-stack
(pgx
Expand Down
3 changes: 2 additions & 1 deletion pgx_lwt_mirage.opam
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ depends: [
"ocaml" {>= "4.08"}
"logs"
"mirage-channel"
"conduit-mirage"
"conduit-mirage" {>= "2.2.0"}
"dns-client"
"mirage-random"
"mirage-time"
"mirage-clock"
"mirage-stack"
"pgx" {= version}
Expand Down
2 changes: 1 addition & 1 deletion pgx_lwt_mirage/src/dune
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ let () = Jbuild_plugin.V1.send @@ {|

(library
(public_name pgx_lwt_mirage)
(libraries pgx_lwt lwt logs.lwt pgx mirage-channel conduit-mirage dns-client mirage-random mirage-clock mirage-stack)
(libraries pgx_lwt lwt logs.lwt pgx mirage-channel conduit-mirage dns-client mirage-random mirage-time mirage-clock mirage-stack)
|} ^ preprocess ^ {|)
|}
3 changes: 2 additions & 1 deletion pgx_lwt_mirage/src/pgx_lwt_mirage.ml
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,11 @@ end

module Make
(RANDOM : Mirage_random.S)
(TIME : Mirage_time.S)
(MCLOCK : Mirage_clock.MCLOCK)
(STACK : Mirage_stack.V4) =
struct
module Dns = Dns_client_mirage.Make (RANDOM) (MCLOCK) (STACK)
module Dns = Dns_client_mirage.Make (RANDOM) (TIME) (MCLOCK) (STACK)

type sockaddr = Thread.sockaddr =
| Unix of string
Expand Down
1 change: 1 addition & 0 deletions pgx_lwt_mirage/src/pgx_lwt_mirage.mli
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

module Make
(RANDOM : Mirage_random.S)
(TIME : Mirage_time.S)
(CLOCK : Mirage_clock.MCLOCK)
(STACK : Mirage_stack.V4) : sig
val connect : STACK.t -> (module Pgx_lwt.S)
Expand Down

0 comments on commit 315a4ee

Please sign in to comment.