summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMateus Cruz <mateuscolvr@gmail.com>2024-02-06 03:08:10 -0300
committerMateus Cruz <mateuscolvr@gmail.com>2024-02-06 03:15:27 -0300
commit606f39cb00766e5be46b38e3c3034e702c3795e6 (patch)
tree83a85fbb43b8da3980ed44bd7848c491af3e70fc /bin
parentdb882cae080d3820f1723a711398c21db27f826a (diff)
chore: rename app
Diffstat (limited to 'bin')
-rw-r--r--bin/dune4
-rw-r--r--bin/main.ml4
2 files changed, 4 insertions, 4 deletions
diff --git a/bin/dune b/bin/dune
index 9c34236..3978ff9 100644
--- a/bin/dune
+++ b/bin/dune
@@ -1,10 +1,10 @@
(executable
- (public_name rinha)
+ (public_name combattant)
(name main)
(flags
(:standard -cclib -static -cclib -no-pie))
(libraries
- rinha
+ combattant
piaf
routes
eio_main
diff --git a/bin/main.ml b/bin/main.ml
index 03cc5ca..3839f6f 100644
--- a/bin/main.ml
+++ b/bin/main.ml
@@ -9,7 +9,7 @@ let setup_log ?style_renderer level =
;;
let request_handler ~db_pool Server.{ request; _ } =
- match Rinha.Router.match_route request.meth request.target with
+ match Combattant.Router.match_route request.meth request.target with
| Some handler -> Result.get_ok @@ handler db_pool request
| None ->
Logs.info (fun d -> d "Não encontrei %S\n" request.target);
@@ -29,7 +29,7 @@ let () =
in
let config = Server.Config.create config in
let db_uri =
- Uri.make ~scheme:"postgres" ~userinfo:"admin:123" ~host:"db" ~path:"rinha" ()
+ Uri.make ~scheme:"postgres" ~userinfo:"admin:123" ~host:"db" ~path:"combattant" ()
in
let db_pool =
Result.get_ok