Skip to content

Commit

Permalink
Fix demo building with lwt on Dream
Browse files Browse the repository at this point in the history
  • Loading branch information
davesnx committed Aug 8, 2024
1 parent 9d720b7 commit 22c095d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions demo/server/server.re
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,9 @@ let handler =
Dream.stream(
~headers=[("Content-Type", "text/html")],
response_stream => {
let (stream, _) =
let%lwt (stream, _) =
ReactDOM.renderToLwtStream(<Document> <Comments /> </Document>);

/* Lwt.async(() => {}); */

Lwt_stream.iter_s(
data => {
let%lwt () = Dream.write(response_stream, data);
Expand Down

0 comments on commit 22c095d

Please sign in to comment.