MNET: + .ocamlformat-ignore
This commit is contained in:
parent
7ed875cd5e
commit
69755537f6
5 changed files with 35 additions and 38 deletions
19
src/mte.ml
19
src/mte.ml
|
|
@ -83,17 +83,15 @@ let test (module Conn : Caqti_miou.CONNECTION) =
|
|||
|
||||
let disconnect (module Conn : Caqti_miou.CONNECTION) = Conn.disconnect ()
|
||||
|
||||
|
||||
module RNG = Mirage_crypto_rng.Fortuna
|
||||
|
||||
|
||||
let () =
|
||||
let ( let@ ) finally fn = Fun.protect ~finally fn in
|
||||
Util.Log_reporter.setup ();
|
||||
let rng =
|
||||
let rng () = Mirage_crypto_rng_mkernel.initialize (module RNG) in
|
||||
Mkernel.map rng Mkernel.[]
|
||||
in
|
||||
let rng =
|
||||
let rng () = Mirage_crypto_rng_mkernel.initialize (module RNG) in
|
||||
Mkernel.map rng Mkernel.[]
|
||||
in
|
||||
let storage = Mkernel.storage ~name:"storage" in
|
||||
let service =
|
||||
let ipv4 = Ipaddr.V4.Prefix.of_string_exn "10.0.0.2/24" in
|
||||
|
|
@ -122,17 +120,14 @@ in
|
|||
Logs.app (fun m -> m "Test OK");
|
||||
(* -- *)
|
||||
(* -- start webserver -- *)
|
||||
let devices = [
|
||||
]
|
||||
in
|
||||
let devices = [] in
|
||||
let cfg = Vifu.Config.v Config.Exchange.port in
|
||||
let db_device = Devices.db_connection sw in
|
||||
let keys_device = Devices.keys storage (Vifu.Device.value db_device) in
|
||||
let devices = Vifu.Devices.[ db_device; keys_device] in
|
||||
let devices = Vifu.Devices.[ db_device; keys_device ] in
|
||||
Vifu.run ~cfg ~devices tcp routes ()
|
||||
|
||||
|
||||
(*
|
||||
(*
|
||||
Miou_unix.run @@ fun () ->
|
||||
Caqti_miou.Switch.run @@ fun caqti_switch ->
|
||||
let env : Devices.env =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue