global.ml -> env.ml + mte_device.ml
This commit is contained in:
parent
0f4aa3f3f9
commit
34b979a9bc
7 changed files with 39 additions and 39 deletions
|
|
@ -98,8 +98,8 @@ let () =
|
|||
(* -- *)
|
||||
let fs = Fat.create storage in
|
||||
let cfg = Vifu.Config.v Config.Exchange.port in
|
||||
let devices = Vifu.Devices.[ Global.db_conn; Global.keys ] in
|
||||
let devices = Vifu.Devices.[ Mte_device.db_conn; Mte_device.keys ] in
|
||||
let handlers = [ Mte_handler.not_implemented_route ] in
|
||||
let env = Global.{ sw; stack; tcp; dns; fs } in
|
||||
let env = { Env.sw; stack; tcp; dns; fs } in
|
||||
Logs.info (fun m -> m "Starting MTE server");
|
||||
Vifu.run ~cfg ~devices ~handlers tcp routes env
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue