This commit is contained in:
parent
c06fbf3b89
commit
fae8d37a47
2 changed files with 4 additions and 2 deletions
|
|
@ -16,7 +16,9 @@ let db_connection : (env, Caqti_miou.connection) Vif.Device.device =
|
||||||
match Pg.preflight conn with
|
match Pg.preflight conn with
|
||||||
| Error err ->
|
| Error err ->
|
||||||
Fmt.failwith "Database preflight failure: %a." Caqti_error.pp err
|
Fmt.failwith "Database preflight failure: %a." Caqti_error.pp err
|
||||||
| Ok () -> conn)
|
| Ok () ->
|
||||||
|
Logs.debug (fun m -> m "database connection initialized.@.");
|
||||||
|
conn)
|
||||||
|
|
||||||
module Secmod_signkey = struct
|
module Secmod_signkey = struct
|
||||||
(* TODO
|
(* TODO
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ let () =
|
||||||
let cfg =
|
let cfg =
|
||||||
let port = Config.Exchange.port in
|
let port = Config.Exchange.port in
|
||||||
let sockaddr = Unix.(ADDR_INET (inet_addr_loopback, port)) in
|
let sockaddr = Unix.(ADDR_INET (inet_addr_loopback, port)) in
|
||||||
Vif.config ~reporter:Logs.nop_reporter sockaddr
|
Vif.config ~reporter:Util.Log_reporter.reporter sockaddr
|
||||||
in
|
in
|
||||||
Miou_unix.run @@ fun () ->
|
Miou_unix.run @@ fun () ->
|
||||||
Caqti_miou.Switch.run @@ fun caqti_switch ->
|
Caqti_miou.Switch.run @@ fun caqti_switch ->
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue