mirror of
https://github.com/zap-proto/ocaml-rpc.git
synced 2026-10-30 15:04:28 +00:00
This switches capnp-rpc from Lwt to Eio. One particularly nice side effect of this is that `Service.return_lwt` has gone, as there is no distinction now between concurrent and non-concurrent service methods.
26 lines
504 B
OCaml
26 lines
504 B
OCaml
module Types = struct
|
|
type provision_id
|
|
type recipient_id
|
|
type third_party_cap_id = [`Two_party_only]
|
|
type join_key_part
|
|
end
|
|
|
|
module Address = struct
|
|
type t
|
|
|
|
let pp f _ = Fmt.string f "<two-party-address>"
|
|
|
|
let to_uri _ = assert false
|
|
let parse_uri _ = failwith "Can't use of_uri wih Two_party_network"
|
|
|
|
let equal _ _ = assert false
|
|
|
|
let digest _ = assert false
|
|
end
|
|
|
|
type t = unit
|
|
|
|
let parse_third_party_cap_id _ = `Two_party_only
|
|
|
|
let connect () ~sw:_ ~secret_key:_ _ = assert false
|