Switch to setTimeout

This commit is contained in:
Jon Staab
2024-04-08 13:33:19 -07:00
parent a3e1d8e988
commit 17da310748
3 changed files with 8 additions and 7 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ export const publish = (request: PublishRequest) => {
})
// Start everything off as pending
requestAnimationFrame(() => {
setTimeout(() => {
for (const relay of request.relays) {
pub.emitter.emit(PublishStatus.Pending, relay)
}