Add ability to pass Restorer to RpcClient. Also various fixups
and added __dir__ reflection to DynamicCapabilityClient
This commit is contained in:
@@ -27,7 +27,7 @@ def test_simple_rpc(capability):
|
||||
write_stream = capnp.FdAsyncIoStream(write.fileno())
|
||||
|
||||
restorer = capnp.Restorer(capability.TestSturdyRefObjectId, _restore)
|
||||
server = capnp.RpcServer(loop, restorer, write_stream)
|
||||
server = capnp.RpcServer(loop, write_stream, restorer)
|
||||
client = capnp.RpcClient(loop, read_stream)
|
||||
|
||||
ref = capability.TestSturdyRefObjectId.new_message()
|
||||
|
||||
Reference in New Issue
Block a user