fix pool.publish() example in README.
following https://github.com/nbd-wtf/nostr-tools/issues/482
This commit is contained in:
parent
b80f8a0bcc
commit
2a422774fb
|
@ -104,7 +104,7 @@ let eventTemplate = {
|
||||||
|
|
||||||
// this assigns the pubkey, calculates the event id and signs the event in a single step
|
// this assigns the pubkey, calculates the event id and signs the event in a single step
|
||||||
const signedEvent = finalizeEvent(eventTemplate, sk)
|
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()
|
relay.close()
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue