Update https-unikernel example to latest API

Also, stop static linking for now, as it generates a lot of warnings
with glibc.

Signed-off-by: Thomas Leonard <thomas.leonard@docker.com>
This commit is contained in:
Thomas Leonard
2017-07-07 14:36:09 +01:00
parent 76509e34a2
commit 815f5599fc
9 changed files with 41 additions and 53 deletions

View File

@@ -13,8 +13,10 @@ let service () =
Irmin_store.Repo.v config >>= fun repo ->
Irmin_store.of_branch repo Irmin_store.Branch.master >|= fun db ->
Api.Builder.Store.local @@
object (_ : Api.Builder.Store.service)
method get req =
object
inherit Api.Builder.Store.service
method get_impl req =
let module P = Api.Reader.Store.Get_params in
let module R = Api.Builder.Store.GetResults in
let params = P.of_payload req in