more adaptation to new sdk (async functions)

This commit is contained in:
Believethehype
2024-06-09 12:59:41 +02:00
parent 96e0be239f
commit 823671cc9b
10 changed files with 67 additions and 57 deletions

View File

@@ -223,7 +223,7 @@ class Subscription:
await client.add_relay(relay)
await client.connect()
recipeid = await client.send_event(event)
await client.disconnect()
await client.shutdown()
recipe = recipeid.to_hex()
return recipe