From 2873527df7e0015c45d10d80ae63ec188139aca5 Mon Sep 17 00:00:00 2001 From: Akiomi Kamakura Date: Tue, 19 Dec 2023 12:05:11 +0900 Subject: [PATCH] Fix typos --- bouncer.js | 2 +- config.js.example | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bouncer.js b/bouncer.js index e9171fe..c2558ec 100644 --- a/bouncer.js +++ b/bouncer.js @@ -85,7 +85,7 @@ module.exports = (ws, req) => { case "AUTH": if (auth(authKey, data[1], ws, req)) { 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; relays.forEach(_ => newConn(_, ws.id)); authorized = true; diff --git a/config.js.example b/config.js.example index 281bf2f..e1ad562 100644 --- a/config.js.example +++ b/config.js.example @@ -13,11 +13,11 @@ module.exports = { // Log about bouncer connection with relays? log_about_relays: false, - // Time before reconnect to relays in miliseconds. + // Time before reconnect to relays in milliseconds. reconnect_time: 5000, // Wait for every connected relays send EOSE. - // Could improve accurancy on received events. + // Could improve accuracy on received events. // // Depending on your configured relays, // It may could cause loading problems in client due to slow EOSE from bouncer. @@ -25,12 +25,12 @@ module.exports = { wait_eose: true, // Pause an subscription from receiving further events after reached to - // Could save client's bandwdith. + // Could save client's bandwidth. // // Depending on settings, It could either miss some events. pause_on_limit: true, - // EOSE timeout in miliseconds + // EOSE timeout in milliseconds eose_timeout: 2300, // Maximum of received EOSE from relays to send EOSE to client.