fix pool.publish() example in README.

following https://github.com/nbd-wtf/nostr-tools/issues/482
This commit is contained in:
fiatjaf 2025-04-17 17:17:34 -03:00
parent b80f8a0bcc
commit 2a422774fb
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ let eventTemplate = {
// this assigns the pubkey, calculates the event id and signs the event in a single step
const signedEvent = finalizeEvent(eventTemplate, sk)
await pool.publish(['wss://a.com', 'wss://b.com'], signedEvent)
await Promise.any(pool.publish(['wss://a.com', 'wss://b.com'], signedEvent))
relay.close()
```