This commit is contained in:
parent
0b01ef8871
commit
9d3e1e1ba3
6 changed files with 11 additions and 11 deletions
2
Makefile
2
Makefile
|
|
@ -1,4 +1,4 @@
|
||||||
# Generated by mirage.v4.10.3
|
# Generated by mirage.v4.10.1
|
||||||
|
|
||||||
-include Makefile.user
|
-include Makefile.user
|
||||||
BUILD_DIR = unikernel/
|
BUILD_DIR = unikernel/
|
||||||
|
|
|
||||||
|
|
@ -4,4 +4,4 @@
|
||||||
|
|
||||||
(implicit_transitive_deps true)
|
(implicit_transitive_deps true)
|
||||||
|
|
||||||
;; Generated by mirage.v4.10.3
|
;; Generated by mirage.v4.10.1
|
||||||
|
|
|
||||||
|
|
@ -2,4 +2,4 @@
|
||||||
|
|
||||||
(context (default))
|
(context (default))
|
||||||
|
|
||||||
;; Generated by mirage.v4.10.3
|
;; Generated by mirage.v4.10.1
|
||||||
|
|
|
||||||
|
|
@ -6,9 +6,9 @@ let packages =
|
||||||
[
|
[
|
||||||
package "digestif"; package ~min:"0.0.9" "mimic-happy-eyeballs";
|
package "digestif"; package ~min:"0.0.9" "mimic-happy-eyeballs";
|
||||||
package "hxd" ~sublibs:[ "core"; "string" ]; package "rresult";
|
package "hxd" ~sublibs:[ "core"; "string" ]; package "rresult";
|
||||||
package "h2" ~min:"0.13.0"; package "pgx"; package "pgx_lwt";
|
package ~min:"0.13.0" "h2"; package ~min:"10.0.0" "dns-client";
|
||||||
package "pgx_lwt_mirage"; package "logs"; package "mirage-logs";
|
package "pgx"; package "pgx_lwt"; package "pgx_lwt_mirage"; package "logs";
|
||||||
package "conduit"; package "duration";
|
package "mirage-logs"; package "conduit"; package "duration";
|
||||||
]
|
]
|
||||||
|
|
||||||
let mte =
|
let mte =
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
;; Generated by mirage.v4.10.3
|
;; Generated by mirage.v4.10.1
|
||||||
|
|
||||||
(include dune.build)
|
(include dune.build)
|
||||||
|
|
|
||||||
|
|
@ -112,7 +112,7 @@ struct
|
||||||
in
|
in
|
||||||
Lwt.return
|
Lwt.return
|
||||||
@@
|
@@
|
||||||
let open Result.Syntax in
|
let ( let* ) = Result.bind in
|
||||||
let* l =
|
let* l =
|
||||||
list_get_ok
|
list_get_ok
|
||||||
@@ List.map
|
@@ List.map
|
||||||
|
|
@ -172,7 +172,7 @@ struct
|
||||||
let*? privacy_etag, privacy_lang_l, privacy_ext_l = get ro "privacy" in
|
let*? privacy_etag, privacy_lang_l, privacy_ext_l = get ro "privacy" in
|
||||||
Lwt.return
|
Lwt.return
|
||||||
@@
|
@@
|
||||||
let open Result.Syntax in
|
let ( let* ) = Result.bind in
|
||||||
let* lang_l =
|
let* lang_l =
|
||||||
match terms_lang_l = privacy_lang_l with
|
match terms_lang_l = privacy_lang_l with
|
||||||
| false ->
|
| false ->
|
||||||
|
|
@ -288,9 +288,9 @@ struct
|
||||||
in
|
in
|
||||||
Pgx.with_conn ~user:pgx_user ~host:pgx_hostname ~password:pgx_password
|
Pgx.with_conn ~user:pgx_user ~host:pgx_hostname ~password:pgx_password
|
||||||
~port:pgx_port ~database:pgx_database
|
~port:pgx_port ~database:pgx_database
|
||||||
@@ fun conn ->
|
@@ fun pgx_conn ->
|
||||||
let* () =
|
let* () =
|
||||||
let+ alive = Pgx.alive conn in
|
let+ alive = Pgx.alive pgx_conn in
|
||||||
match alive with
|
match alive with
|
||||||
| false -> Fmt.failwith "Pgx connection failure: connection not alive"
|
| false -> Fmt.failwith "Pgx connection failure: connection not alive"
|
||||||
| true -> Logs.info (fun m -> m "Pgx connection success")
|
| true -> Logs.info (fun m -> m "Pgx connection success")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue