summaryrefslogtreecommitdiff
path: root/bin/main.ml
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/main.ml
parentdb882cae080d3820f1723a711398c21db27f826a (diff)
chore: rename app
Diffstat (limited to 'bin/main.ml')
-rw-r--r--bin/main.ml4
1 files changed, 2 insertions, 2 deletions
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