Skip to content

Commit

Permalink
Merge pull request #642 from mirage/fix-mimic-0.0.8
Browse files Browse the repository at this point in the history
Fix the compilation with mimic-happy-eyeballs.0.0.8
  • Loading branch information
dinosaure authored Jun 11, 2024
2 parents 7f99931 + 403a699 commit c70a4df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion git-unix.opam
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ depends: [
"mirage-flow" {>= "4.0.0"}
"ke" {>= "0.4" & with-test}
"mirage-crypto-rng" {>= "0.11.0" & with-test}
"mimic"
"mimic" {>= "0.0.8"}
"tls" {>= "0.14.0"}
]
conflicts: [ "result" {< "1.5"} ]
Expand Down
5 changes: 3 additions & 2 deletions src/git-unix/git_unix_mimic.ml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ module Happy_eyeballs = struct

let happy_eyeballs = Mimic.make ~name:"happy-eyeballs-lwt"

let resolve t addr ports =
Happy_eyeballs_lwt.connect t addr ports >|= Rresult.R.open_error_msg
let resolve t ?aaaa_timeout ?connect_delay ?connect_timeout ?resolve_timeout ?resolve_retries addr ports =
Happy_eyeballs_lwt.connect ?aaaa_timeout ?connect_delay ?connect_timeout ?resolve_timeout ?resolve_retries
t addr ports >|= Rresult.R.open_error_msg
end

module TCP = struct
Expand Down

0 comments on commit c70a4df

Please sign in to comment.