mirror of
https://github.com/c-cube/tiny_httpd.git
synced 2025-12-06 11:15:35 -05:00
tiny_httpd_eio: do not use Eio's clock for our internals
This commit is contained in:
parent
79cbcca4c1
commit
5e0a634c10
1 changed files with 1 additions and 4 deletions
|
|
@ -120,10 +120,7 @@ let io_backend ?(addr = "127.0.0.1") ?(port = 8080) ?max_connections
|
||||||
let module M = struct
|
let module M = struct
|
||||||
let init_addr () = addr
|
let init_addr () = addr
|
||||||
let init_port () = port
|
let init_port () = port
|
||||||
|
let get_time_s () = Unix.gettimeofday ()
|
||||||
let get_time_s () =
|
|
||||||
let clock = Eio.Stdenv.clock stdenv in
|
|
||||||
Eio.Time.now clock
|
|
||||||
|
|
||||||
let tcp_server () : IO.TCP_server.builder =
|
let tcp_server () : IO.TCP_server.builder =
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue