Fix typos

This commit is contained in:
Akiomi Kamakura
2023-12-19 12:05:11 +09:00
parent a3b37912bc
commit 2873527df7
2 changed files with 5 additions and 5 deletions

View File

@@ -85,7 +85,7 @@ module.exports = (ws, req) => {
case "AUTH": case "AUTH":
if (auth(authKey, data[1], ws, req)) { if (auth(authKey, data[1], ws, req)) {
ws.pubkey = data[1].pubkey; ws.pubkey = data[1].pubkey;
console.log(process.pid, "---", ws.id, "succesfully authorized as", ws.pubkey, private_keys[ws.pubkey] ? "(admin)" : "(user)"); console.log(process.pid, "---", ws.id, "successfully authorized as", ws.pubkey, private_keys[ws.pubkey] ? "(admin)" : "(user)");
if (authorized) return; if (authorized) return;
relays.forEach(_ => newConn(_, ws.id)); relays.forEach(_ => newConn(_, ws.id));
authorized = true; authorized = true;

View File

@@ -13,11 +13,11 @@ module.exports = {
// Log about bouncer connection with relays? // Log about bouncer connection with relays?
log_about_relays: false, log_about_relays: false,
// Time before reconnect to relays in miliseconds. // Time before reconnect to relays in milliseconds.
reconnect_time: 5000, reconnect_time: 5000,
// Wait for every connected relays send EOSE. // Wait for every connected relays send EOSE.
// Could improve accurancy on received events. // Could improve accuracy on received events.
// //
// Depending on your configured relays, // Depending on your configured relays,
// It may could cause loading problems in client due to slow EOSE from bouncer. // It may could cause loading problems in client due to slow EOSE from bouncer.
@@ -25,12 +25,12 @@ module.exports = {
wait_eose: true, wait_eose: true,
// Pause an subscription from receiving further events after reached to <filter.limit> // Pause an subscription from receiving further events after reached to <filter.limit>
// Could save client's bandwdith. // Could save client's bandwidth.
// //
// Depending on <wait_eose> settings, It could either miss some events. // Depending on <wait_eose> settings, It could either miss some events.
pause_on_limit: true, pause_on_limit: true,
// EOSE timeout in miliseconds // EOSE timeout in milliseconds
eose_timeout: 2300, eose_timeout: 2300,
// Maximum of received EOSE from relays to send EOSE to client. // Maximum of received EOSE from relays to send EOSE to client.