From ad7b09b43323d0ffc0a8ddabb43e4838a184c697 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 24 Feb 2026 13:18:42 -0800 Subject: formatting --- lib/lightning.ts | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to 'lib/lightning.ts') diff --git a/lib/lightning.ts b/lib/lightning.ts index 4824d9ab..a259b601 100644 --- a/lib/lightning.ts +++ b/lib/lightning.ts @@ -66,8 +66,7 @@ export async function listenForLightning() { handleZap(inv, pubkey); } } catch (e) { - if (!e.message.includes("Unexpected")) - warn("failed to handle zap", e.message); + if (!e.message.includes("Unexpected")) warn("failed to handle zap", e.message); } } @@ -88,11 +87,7 @@ export async function listenForLightning() { const errorCode = e?.code ?? e?.errno ?? "unknown"; const errorMsg = e?.message ?? String(e); - err( - `lightning listener: error waiting for invoice`, - `code=${errorCode}`, - `error=${errorMsg}` - ); + err(`lightning listener: error waiting for invoice`, `code=${errorCode}`, `error=${errorMsg}`); if (e instanceof LightningUnavailableError) { err("lightning listener: RPC socket unavailable"); @@ -103,7 +98,7 @@ export async function listenForLightning() { if (listenerRetries >= MAX_LISTENER_RETRIES) { err( `lightning listener: ${MAX_LISTENER_RETRIES} consecutive failures, ` + - `last error: ${errorMsg}` + `last error: ${errorMsg}`, ); err("lightning listener: exiting process to trigger container restart"); @@ -115,7 +110,7 @@ export async function listenForLightning() { warn( `lightning listener: retry ${listenerRetries}/${MAX_LISTENER_RETRIES} ` + - `in ${LISTENER_RETRY_DELAY / 1000}s` + `in ${LISTENER_RETRY_DELAY / 1000}s`, ); setTimeout(listenForLightning, LISTENER_RETRY_DELAY); } @@ -150,8 +145,7 @@ export async function replay(index) { handleZap(inv, pubkey); } } catch (e) { - if (!e.message.includes("Unexpected")) - warn("failed to handle zap", e.message); + if (!e.message.includes("Unexpected")) warn("failed to handle zap", e.message); } } -- cgit v1.2.3