Skip to content

Commit

Permalink
Merge pull request #35 from tmcgilchrist/async_upgrade
Browse files Browse the repository at this point in the history
Update for base / core v0.16
  • Loading branch information
tmcgilchrist authored Sep 8, 2023
2 parents 06d2e06 + cd6d39f commit 3e5dfb3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 20 deletions.
15 changes: 2 additions & 13 deletions dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -63,18 +63,10 @@
(>= 4.11))
(grpc
(= :version))
(h2
(>= 0.9.0))
(h2-async
(>= 0.9.0))
(async
(and (>= v0.15) (< v0.16)))
(ppx_jane
(and (>= v0.15) (< v0.16)))
(async (>= v0.16))
stringext))

(package

(name grpc-examples)
(synopsis "Various grpc examples")
(description "Various grpc examples.")
Expand All @@ -84,12 +76,9 @@
grpc-async
grpc-eio
(ocaml-protoc-plugin (>= 4.5))
(async
(and (>= v0.15) (< v0.16)))
(ppx_jane
(and (>= v0.15) (< v0.16)))
ppx_deriving_yojson
h2-lwt-unix
h2-async
conduit-lwt-unix
cohttp-lwt-unix
tls-async
Expand Down
2 changes: 1 addition & 1 deletion examples/routeguide-async/src/client.ml
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ let run_route_chat connection =
(* Pause and wait for server reply. Not strictly necessary but it demonstrates that
responses are streamed rather than arriving as one response.
*)
let%bind () = Async.after (Time_unix.Span.of_string "1s") in
let%bind () = Async.after (Time_float_unix.Span.of_string "1s") in

let%bind response = Pipe.read' reader in
match response with
Expand Down
5 changes: 1 addition & 4 deletions grpc-async.opam
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@ depends: [
"dune" {>= "3.7"}
"ocaml" {>= "4.11"}
"grpc" {= version}
"h2" {>= "0.9.0"}
"h2-async" {>= "0.9.0"}
"async" {>= "v0.15" & < "v0.16"}
"ppx_jane" {>= "v0.15" & < "v0.16"}
"async" {>= "v0.16"}
"stringext"
"odoc" {with-doc}
]
Expand Down
3 changes: 1 addition & 2 deletions grpc-examples.opam
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,9 @@ depends: [
"grpc-async"
"grpc-eio"
"ocaml-protoc-plugin" {>= "4.5"}
"async" {>= "v0.15" & < "v0.16"}
"ppx_jane" {>= "v0.15" & < "v0.16"}
"ppx_deriving_yojson"
"h2-lwt-unix"
"h2-async"
"conduit-lwt-unix"
"cohttp-lwt-unix"
"tls-async"
Expand Down

0 comments on commit 3e5dfb3

Please sign in to comment.