mirror of
https://github.com/Yonle/bostr.git
synced 2025-04-08 11:58:08 +02:00
fix verbose logging bug.
Signed-off-by: Yonle <yonle@lecturify.net>
This commit is contained in:
parent
6758fc2070
commit
540963177a
@ -229,7 +229,7 @@ function newConn(addr, id) {
|
||||
case "EOSE":
|
||||
if (!client.pendingEOSE.has(data[1])) return;
|
||||
client.pendingEOSE.set(data[1], client.pendingEOSE.get(data[1]) + 1);
|
||||
if (process.env.LOG_ABOUT_RELAYS || log_about_relays) console.log(process.pid, "---", `[${id}]`, `got EOSE from ${ws.url} for ${data[1]}. There are ${client.pendingEOSE.get(data[1])} EOSE received out of ${Array.from(socks).filter(sock => sock.id === id).length} connected relays.`);
|
||||
if (process.env.LOG_ABOUT_RELAYS || log_about_relays) console.log(process.pid, "---", `[${id}]`, `got EOSE from ${relay.url} for ${data[1]}. There are ${client.pendingEOSE.get(data[1])} EOSE received out of ${Array.from(socks).filter(sock => sock.id === id).length} connected relays.`);
|
||||
if (wait_eose && (client.pendingEOSE.get(data[1]) < (max_eose_score || Array.from(socks).filter(sock => sock.id === id).length))) return;
|
||||
client.pendingEOSE.delete(data[1]);
|
||||
cancel_EOSETimeout(data[1]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user