Merge pull request #2127 from PR0M3TH3AN/optimize-dm-decryptor-race-7712126730371272126

⚡ Optimize decryptLegacyDm with parallel execution
This commit is contained in:
thePR0M3TH3AN authored and GitHub committed 2026-02-05 15:56:09 -05:00
commit 01107fd7dc
1 file changed
+2
+2
View File
@@ -548,6 +548,8 @@ async function decryptLegacyDm(event, decryptors, actorPubkey) {
}
}
// Race all decryption attempts to return the first successful result
// This significantly reduces latency compared to sequential attempts
try {
return await Promise.any(attempts);
} catch (aggregateError) {