This commit is contained in:
swrup 2026-03-12 18:57:24 +01:00
parent 2864439108
commit 19e456639b

View file

@ -93,17 +93,6 @@ let () =
let env = Env.{ sw; stack; tcp; dns; fs } in let env = Env.{ sw; stack; tcp; dns; fs } in
let devices = Vifu.Devices.[ Global.db_conn; Global.keys ] in let devices = Vifu.Devices.[ Global.db_conn; Global.keys ] in
let cfg = Vifu.Config.v Config.Exchange.port in let cfg = Vifu.Config.v Config.Exchange.port in
Vifu.run ~cfg ~devices tcp routes env
(*
Miou_unix.run @@ fun () ->
Caqti_miou.Switch.run @@ fun caqti_switch ->
let env : Devices.env =
{ caqti_switch; db_uri= Config.Exchangedb_postgres.config }
in
let devices = Vifu.Devices.[ Devices.db_connection; Devices.keys ] in
let middlewares = Vifu.Middlewares.[] in
Logs.info (fun m -> Logs.info (fun m ->
m ~tags:(Util.Log_reporter.detail "...") "Starting MTE server"); m ~tags:(Util.Log_reporter.detail "...") "Starting MTE server");
Vifu.run ~cfg ~devices ~middlewares routes env Vifu.run ~cfg ~devices tcp routes env
*)