File tree Expand file tree Collapse file tree 11 files changed +13
-15
lines changed Expand file tree Collapse file tree 11 files changed +13
-15
lines changed Original file line number Diff line number Diff line change 1
1
(executable
2
2
(name httpaf_unix)
3
- (libraries httpaf httpaf-lwt-unix lwt lwt.unix yojson))
3
+ (libraries httpaf httpaf-lwt-unix lwt lwt.unix yojson unix ))
Original file line number Diff line number Diff line change 1
- (lang dune 2 .7 )
1
+ (lang dune 3 .9 )
Original file line number Diff line number Diff line change 2
2
3
3
# https://github.com/rbjorklin/techempower-ocaml-image
4
4
# Use pre-built image with all dependencies for faster test times
5
- FROM rbjorklin/techempower-ocaml-image:4.14 .1-4bf86567
5
+ FROM rbjorklin/techempower-ocaml-image:5.1 .1-b58c72ee
6
6
7
7
# https://caml.inria.fr/pub/docs/manual-ocaml/libref/Gc.html
8
8
# https://linux.die.net/man/1/ocamlrun
Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ let main () =
170
170
accept_loop socket handler);
171
171
let forever, _ = Lwt. wait () in
172
172
Lwt_main. run forever;
173
- exit 0 )
173
+ exit 0 )
174
174
done;
175
175
176
176
while true do
Original file line number Diff line number Diff line change 1
- (lang dune 2 .7 )
1
+ (lang dune 3 .9 )
2
2
(name webmachine-tfb)
3
3
4
4
( generate_opam_files true )
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ license: "MIT"
6
6
homepage: "https://github.com/TechEmpower/FrameworkBenchmarks"
7
7
bug-reports: "https://github.com/TechEmpower/FrameworkBenchmarks/issues"
8
8
depends: [
9
- "dune" {>= "2.7 " & >= "2.8.5"}
9
+ "dune" {>= "3.9 " & >= "2.8.5"}
10
10
"biniou" {>= "1.2.1"}
11
11
"yojson" {>= "1.7.0"}
12
12
"atd" {>= "2.2.1"}
Original file line number Diff line number Diff line change 1
1
(executable
2
- (libraries webmachine lwt cohttp-lwt-unix caqti caqti-lwt caqti-driver-postgresql yojson atdgen-runtime lib)
2
+ (libraries webmachine lwt cohttp-lwt-unix caqti caqti-lwt caqti-driver-postgresql yojson atdgen-runtime lib unix )
3
3
(preprocess (pps lwt_ppx))
4
4
(public_name tfb)
5
5
(package tfb)
Original file line number Diff line number Diff line change @@ -39,14 +39,13 @@ let or_error m =
39
39
Error (Database_error (Caqti_error. show err)) |> Lwt. return
40
40
41
41
let select_random =
42
- Caqti_request. find Caqti_type. int
43
- Caqti_type. (tup2 int int )
42
+ let open Caqti_request.Infix in
43
+ Caqti_type. (int -> ! tup2 int int )
44
44
" SELECT id, randomNumber FROM World WHERE id = $1"
45
45
46
46
class hello =
47
47
object (self )
48
48
inherit [Cohttp_lwt.Body. t] Wm. resource
49
-
50
49
method! allowed_methods rd = Wm. continue [ `GET ] rd
51
50
52
51
method content_types_provided rd =
@@ -68,7 +67,6 @@ class hello =
68
67
class db =
69
68
object (self )
70
69
inherit [Cohttp_lwt.Body. t] Wm. resource
71
-
72
70
method! allowed_methods rd = Wm. continue [ `GET ] rd
73
71
74
72
method content_types_provided rd =
@@ -228,7 +226,7 @@ let main () =
228
226
Lwt. async (fun () -> Server. create ~mode: (`TCP (`Socket socket)) config);
229
227
let forever, _ = Lwt. wait () in
230
228
Lwt_main. run forever;
231
- exit 0 )
229
+ exit 0 )
232
230
done ;
233
231
while true do
234
232
Unix. pause ()
Original file line number Diff line number Diff line change 1
1
(library
2
2
(name lib)
3
3
(public_name lib)
4
- (libraries yojson atdgen-runtime)
4
+ (libraries yojson atdgen-runtime unix )
5
5
(preprocess (pps lwt_ppx)))
6
6
7
7
(rule
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ license: "MIT"
6
6
homepage: "https://github.com/TechEmpower/FrameworkBenchmarks"
7
7
bug-reports: "https://github.com/TechEmpower/FrameworkBenchmarks/issues"
8
8
depends: [
9
- "dune" {>= "2.7 " & >= "2.8.5"}
9
+ "dune" {>= "3.9 " & >= "2.8.5"}
10
10
"webmachine" {>= "0.7.0"}
11
11
"lwt" {>= "5.4.1"}
12
12
"conf-libev" {>= "4-12"}
You can’t perform that action at this time.
0 commit comments