diff options
Diffstat (limited to 'bin')
-rw-r--r-- | bin/dune | 4 | ||||
-rw-r--r-- | bin/main.ml | 4 |
2 files changed, 4 insertions, 4 deletions
@@ -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 |