Skip to content

Commit

Permalink
fixup! Run ocamlformat
Browse files Browse the repository at this point in the history
  • Loading branch information
tmcgilchrist committed Nov 5, 2023
1 parent 62e1749 commit 96ff886
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/routeguide-tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ Now let's look at something a little more complicated: the client-side streaming
<!-- $MDX include,file=routeguide/src/server.ml,part=server-record-route -->
```ocaml
let record_route (clock : _ Eio.Time.clock) (stream : string Seq.t) =
let record_route (clock : _ Eio.Time.clock) (stream : string Seq.t) =
Eio.traceln "RecordRoute";
let last_point = ref None in
Expand Down Expand Up @@ -425,7 +425,7 @@ let client ~sw host port network =
in
let addr = `Tcp (Eio_unix.Net.Ipaddr.of_unix inet, port) in
let socket = Eio.Net.connect ~sw network addr in
H2_eio.Client.create_connection ~sw ~error_handler:ignore socket
H2_eio.Client.create_connection ~sw ~error_handler:ignore socket
```
To call service methods, we take the H2 connection and build up a gRPC call for the service method using `Client.call` from the Client module.
Expand Down

0 comments on commit 96ff886

Please sign in to comment.