From 11858a1f5c45387aaee382a4ec1ee50cd972af3f Mon Sep 17 00:00:00 2001 From: Teknique Date: Wed, 2 Aug 2023 12:09:20 -0700 Subject: [PATCH] Added with_privacy changes --- veilid-python/demo/chat.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/veilid-python/demo/chat.py b/veilid-python/demo/chat.py index 1adf5fa3..4013dd8b 100755 --- a/veilid-python/demo/chat.py +++ b/veilid-python/demo/chat.py @@ -79,7 +79,7 @@ async def start(host: str, port: int, name: str): veilid.types.DHTSchemaSMPLMember(keys["peers"][name], 1), ] - router = await conn.new_routing_context() + router = await(await conn.new_routing_context()).with_privacy() async with router: rec = await router.create_dht_record(veilid.DHTSchema.smpl(0, members)) print(f"New chat key: {rec.key}") @@ -106,7 +106,7 @@ async def respond(host: str, port: int, key: str): keys = config.read_keys() my_key = veilid.KeyPair(keys["self"]) - router = await conn.new_routing_context() + router = await(await conn.new_routing_context()).with_privacy() async with router: await router.open_dht_record(key, my_key) @@ -147,7 +147,7 @@ async def clean(host: str, port: int, key: str): conn = await veilid.json_api_connect(host, port, noop_callback) - router = await conn.new_routing_context() + router = await(await conn.new_routing_context()).with_privacy() async with router: await router.close_dht_record(key) await router.delete_dht_record(key)