Skip to content

Commit

Permalink
Merge pull request #62 from dialohq/tmcgilchrist-windows-update
Browse files Browse the repository at this point in the history
Update OCaml versions on windows
  • Loading branch information
tmcgilchrist authored Aug 8, 2024
2 parents 6c3451c + e21cf67 commit 041c794
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ jobs:
- windows-latest
ocaml-compiler:
- "ocaml.5.0.0,ocaml-option-mingw"
- "ocaml.5.1.0,ocaml-option-mingw"
- "ocaml.5.1.1,ocaml-option-mingw"
- "ocaml.5.2.0,ocaml-option-mingw"

runs-on: ${{ matrix.os }}

Expand Down
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## Unreleased
- Fix bug in Grpc-lwt-client to fetch status code from response header ([#58](https://github.com/dialohq/ocaml-grpc/pull/58)) ([acerone85](https://github.com/acerone85)) review by ([@quernd](https://github.com/quernd))
- Update Async dependency to v0.17.0 ([#62](https://github.com/dialohq/ocaml-grpc/pull/62) ([@tmcgilchrist](https://github.com/tmcgilchrist))

## 0.2.0 2023-10-23

Expand Down
4 changes: 2 additions & 2 deletions dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
(ocaml
(>= 4.11))
(async
(>= v0.16))
(>= v0.17))
(grpc
(= :version))
(h2
Expand Down Expand Up @@ -100,7 +100,7 @@
(network rpc serialisation))
(depends
(async
(>= v0.16.0))
(>= v0.17.0))
cohttp
cohttp-lwt
cohttp-lwt-unix
Expand Down
2 changes: 1 addition & 1 deletion grpc-async.opam
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ bug-reports: "https://github.com/dialohq/ocaml-grpc/issues"
depends: [
"dune" {>= "3.7"}
"ocaml" {>= "4.11"}
"async" {>= "v0.16"}
"async" {>= "v0.17"}
"grpc" {= version}
"h2" {>= "0.9.0"}
"ppx_jane" {>= "v0.16.0"}
Expand Down
2 changes: 1 addition & 1 deletion grpc-examples.opam
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ doc: "https://dialohq.github.io/ocaml-grpc"
bug-reports: "https://github.com/dialohq/ocaml-grpc/issues"
depends: [
"dune" {>= "3.7"}
"async" {>= "v0.16.0"}
"async" {>= "v0.17.0"}
"cohttp"
"cohttp-lwt"
"cohttp-lwt-unix"
Expand Down
6 changes: 3 additions & 3 deletions lib/grpc-async/client.ml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ let default_headers =
[ ("te", "trailers"); ("content-type", "application/grpc+proto") ]

let trailers_handler trailers_status_ivar headers =
Ivar.fill trailers_status_ivar (Grpc.Status.extract_status headers)
Async.Ivar.fill_exn trailers_status_ivar (Grpc.Status.extract_status headers)

let response_handler read_body_ivar out_ivar (response : H2.Response.t)
(body : H2.Body.Reader.t) =
Ivar.fill read_body_ivar body;
Ivar.fill out_ivar response
Async.Ivar.fill_exn read_body_ivar body;
Async.Ivar.fill_exn out_ivar response

let call ~service ~rpc ?(scheme = "https") ~handler ~do_request
?(headers = default_headers) () =
Expand Down

0 comments on commit 041c794

Please sign in to comment.