use database directly

This commit is contained in:
Believethehype
2024-06-06 13:55:47 +02:00
parent c0d77808e7
commit 2ae742b691
10 changed files with 85 additions and 87 deletions

View File

@@ -178,11 +178,10 @@ async def send_event_outbox(event: Event, client, dvm_config) -> EventId:
keys = Keys.parse(sk.to_hex())
signer = NostrSigner.keys(keys)
outboxclient = Client.with_opts(signer, opts)
print("[" + dvm_config.NIP89.NAME + "] Receiver Inbox relays: " + str(relays))
for relay in relays:
opts = RelayOptions().ping(False)
opts = RelayOptions().ping(True)
try:
await outboxclient.add_relay_with_opts(relay, opts)
except: