perf(p2p): reduce traffic of p2p calls
This commit is contained in:
parent
64ab97127a
commit
d011d6ed82
@ -84,6 +84,9 @@ class Spider extends Emiter {
|
||||
}
|
||||
for(const address of this.table.nodes)
|
||||
{
|
||||
if(parseInt(Math.random() * 5) !== 1)
|
||||
continue;
|
||||
|
||||
this.send(message, address)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user