index

id: a87b0b743e94ae3094a89d5cf305d125e5bdb6724c2a624190ab4267e357ce76

id (bech32): note14paskap7jjhrp99gn4w0xpw3yhjmmdnjfs4xysvs4dpx0c6heemqnmyw6v

sig: 2b04fc6fc758ccaaceb2853e933eb45bc67e77d402ec027a003cfe50c064dee038e56c41c73ad4cf4f6c7c6330198d5eb1db610cd0b73bacb51ca6dc9c879c38

created_at: 2024-10-04 16:58:31 +0900

created_at (unix time): 1728028711

content:

// 間違ってるっぽい (現状コード)
await Promise.race([
Promise.allSettled(pool.publish(relays, event)),
new Promise((resolve) => {
setTimeout(
() => {
resolve();
},
1 * 60 * 1000
);
}),
]);

// こう直す?
await Promise.race([
new Promise((resolve) => {
Promise.allSettled(pool.publish(relays, event)).then((_results) => { resolve() });
}),
new Promise((resolve) => {
setTimeout(
() => {
resolve();
},
1 * 60 * 1000
);
}),
]);

ってことで合ってそうか?

JSON