mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-04-05 04:38:29 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user