From 2a422774fb7d1c2886db8f2b17761b87a2bd19cb Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Thu, 17 Apr 2025 17:17:34 -0300 Subject: [PATCH] fix pool.publish() example in README. following https://github.com/nbd-wtf/nostr-tools/issues/482 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ad254cc..822e66c 100644 --- a/README.md +++ b/README.md @@ -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() ```