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

@@ -81,7 +81,7 @@ class DiscoverReports(DVMTaskInterface):
cli = Client.with_opts(signer, opts)
# cli.add_relay("wss://relay.nostr.band")
for relay in self.dvm_config.RELAY_LIST:
cli.add_relay(relay)
await cli.add_relay(relay)
# add nostr band, too.
ropts = RelayOptions().ping(False)
await cli.add_relay_with_opts("wss://nostr.band", ropts)