signal: process devices sequentially

This commit is contained in:
Rajeh Taher
2025-10-18 20:28:03 +03:00
parent 9f787c51d3
commit ca50338be1
+2 -4
View File
@@ -109,8 +109,7 @@ export const parseAndInjectE2ESessions = async (node: BinaryNode, repository: Si
const chunks = chunk(nodes, chunkSize) const chunks = chunk(nodes, chunkSize)
for (const nodesChunk of chunks) { for (const nodesChunk of chunks) {
await Promise.all( for (const node of nodesChunk) {
nodesChunk.map(async (node: BinaryNode) => {
const signedKey = getBinaryNodeChild(node, 'skey')! const signedKey = getBinaryNodeChild(node, 'skey')!
const key = getBinaryNodeChild(node, 'key')! const key = getBinaryNodeChild(node, 'key')!
const identity = getBinaryNodeChildBuffer(node, 'identity')! const identity = getBinaryNodeChildBuffer(node, 'identity')!
@@ -127,8 +126,7 @@ export const parseAndInjectE2ESessions = async (node: BinaryNode, repository: Si
preKey: extractKey(key)! preKey: extractKey(key)!
} }
}) })
}) }
)
} }
} }