Skip to content

Commit

Permalink
Remove now-unused Buf_io and associated tests
Browse files Browse the repository at this point in the history
Signed-off-by: Rob Hoes <[email protected]>
  • Loading branch information
robhoes committed Oct 17, 2024
1 parent ff9ce6d commit 8e02455
Show file tree
Hide file tree
Showing 11 changed files with 59 additions and 382 deletions.
4 changes: 2 additions & 2 deletions ocaml/database/database_server_main.ml
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ let _ =
let socket = Http_svr.bind sockaddr "unix_rpc" in
let server = Http_svr.Server.empty () in
Http_svr.Server.add_handler server Http.Post "/post_remote_db_access"
(Http_svr.BufIO remote_database_access_handler_v1) ;
remote_database_access_handler_v1 ;
Http_svr.Server.add_handler server Http.Post "/post_remote_db_access_v2"
(Http_svr.BufIO remote_database_access_handler_v2) ;
remote_database_access_handler_v2 ;
Http_svr.start ~conn_limit:1024 server socket ;
Printf.printf "server listening\n%!" ;
if !self_test then (
Expand Down
113 changes: 0 additions & 113 deletions ocaml/libs/http-lib/buf_io.ml

This file was deleted.

50 changes: 0 additions & 50 deletions ocaml/libs/http-lib/buf_io.mli

This file was deleted.

106 changes: 0 additions & 106 deletions ocaml/libs/http-lib/bufio_test.ml

This file was deleted.

1 change: 0 additions & 1 deletion ocaml/libs/http-lib/bufio_test.mli

This file was deleted.

1 change: 0 additions & 1 deletion ocaml/libs/http-lib/bufio_test_run.ml

This file was deleted.

Empty file.
38 changes: 1 addition & 37 deletions ocaml/libs/http-lib/dune
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
(public_name http-lib)
(modes best)
(wrapped false)
(modules (:standard \ http_svr http_proxy server_io http_test radix_tree_test test_client test_server bufio_test bufio_test_run))
(modules (:standard \ http_svr http_proxy server_io http_test radix_tree_test test_client test_server))
(preprocess (per_module ((pps ppx_deriving_rpc) Http)))
(libraries
astring
Expand Down Expand Up @@ -67,42 +67,6 @@
)
)

(test
(name bufio_test_run)
(package http-lib)
(modes (best exe))
(modules bufio_test_run)
(libraries
qcheck-core.runner
bufio_test
)
; use fixed seed to avoid causing random failures in CI and package builds
(action (run %{test} -v -bt --seed 42))
)

(library
(name bufio_test)
(modes best)
(modules bufio_test)
(libraries
fmt
mtime
mtime.clock
mtime.clock.os
rresult
http_lib
qcheck-core
xapi_fd_test
)
)

(rule
(alias stresstest)
(deps bufio_test_run.exe)
; use default random seed on stresstests
(action (run %{deps} -v -bt))
)

(executable
(modes exe)
(name test_client)
Expand Down
Loading

0 comments on commit 8e02455

Please sign in to comment.