Lol i tried to iterate over not-iterable object

This commit is contained in:
MrMasrozYTLIVE 2024-06-10 17:40:57 +03:00
parent 7399585d9e
commit 6980520a85

View File

@ -22,7 +22,7 @@ class Client extends EventEmitter {
this.swarm.on('update', () => {
console.log(`Peers count: ${this.swarm.connections.size}`);
if(this.swarm.connections.size > 0) {
console.log([...this.swarm]);
console.log([this.swarm]);
process.exit(-1);
}
});