fix: update example

This commit is contained in:
Simon Cruanes 2025-05-01 12:06:07 -04:00
parent 14d744c369
commit 9b7c628506
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4

View file

@ -124,7 +124,7 @@ let () =
| `Posix -> Nanoev_posix.create () | `Posix -> Nanoev_posix.create ()
| `Unix -> Nanoev_unix.create () | `Unix -> Nanoev_unix.create ()
in in
let@ () = Nanoev_picos.with_setup_bg_thread ev in let@ () = Nanoev_picos.Background_thread.with_setup ev in
let server = let server =
Nanoev_tiny_httpd.create ~new_thread:(Moonpool.run_async pool) ~port:!port_ Nanoev_tiny_httpd.create ~new_thread:(Moonpool.run_async pool) ~port:!port_