Mise à jour de GitLab prévue ce samedi 23 octobre 2021 à partir de 9h00 CET

Commit f6a2947a authored by Cédric Moreau's avatar Cédric Moreau
Browse files

[fix] synchronization could never end

parent 9ac0f6fc
......@@ -186,7 +186,7 @@ export class P2PSyncDownloader implements ISyncDownloader {
}
node.nbSuccess++;
const peers = await Promise.all(this.nodes)
const peers = await Promise.all(this.nodes.filter(p => p.isResolved()))
const downloading = Underscore.filter(peers, (p:any) => p.downloading && p.ttas.length);
this.lastAvgDelay = downloading.reduce((sum:number, c:any) => {
const tta = Math.round(c.ttas.reduce((sum:number, tta:number) => sum + tta, 0) / c.ttas.length)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment