This commit is contained in:
parent
c7466866df
commit
67b1e9cec2
1 changed files with 2 additions and 5 deletions
|
|
@ -39,18 +39,15 @@ module Make
|
|||
(Connect : Connect.S)
|
||||
(HTTP_server : Paf_mirage.S) =
|
||||
struct
|
||||
|
||||
let tls certificate_ro key_ro =
|
||||
let ( >>= ) = Lwt_result.bind in
|
||||
Key.list key_ro Mirage_kv.Key.empty |> map_err_to_string Key.pp_error
|
||||
>>= fun keys ->
|
||||
let keys, _ = List.partition (fun (_, t) -> t = `Value) keys in
|
||||
let keys = List.filter (fun (_, t) -> t = `Value) keys in
|
||||
Certificate.list certificate_ro Mirage_kv.Key.empty
|
||||
|> map_err_to_string Certificate.pp_error
|
||||
>>= fun certificates ->
|
||||
let certificates, _ =
|
||||
List.partition (fun (_, t) -> t = `Value) certificates
|
||||
in
|
||||
let certificates = List.filter (fun (_, t) -> t = `Value) certificates in
|
||||
let fold acc (name, _) =
|
||||
match Mirage_kv.Key.basename name with
|
||||
| ".gitkeep" -> Lwt.return acc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue