diff options
| author | Adam Soltys <[email protected]> | 2026-03-15 22:49:17 +0000 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-03-15 22:49:17 +0000 |
| commit | 74af7b1d0922e740c0358dfd131776fd7c877767 (patch) | |
| tree | e1e8e0cf566c1de7b48863ec6d0790b5632b2e71 /lib/health.ts | |
| parent | f87b082c14869c4934b4e5fc7ff4b8066a84ed8d (diff) | |
| download | coinos-server-regtest-data.tar.gz coinos-server-regtest-data.zip | |
adjust ln minfeeregtest-data
Diffstat (limited to 'lib/health.ts')
| -rw-r--r-- | lib/health.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/health.ts b/lib/health.ts index c2e268c6..d9c38fa5 100644 --- a/lib/health.ts +++ b/lib/health.ts @@ -37,7 +37,7 @@ async function checkLightningHealth(): Promise<boolean> { const startTime = Date.now(); try { - l("health check: testing lightning connection..."); + // l("health check: testing lightning connection..."); const info = await withTimeout(ln.getinfo(), RPC_TIMEOUT, "getinfo"); if (!info?.id) { @@ -71,7 +71,7 @@ async function checkLightningHealth(): Promise<boolean> { } const duration = Date.now() - startTime; - l(`health check: passed in ${duration}ms, node: ${info.id.slice(0, 16)}...`); + // l(`health check: passed in ${duration}ms, node: ${info.id.slice(0, 16)}...`); return true; } catch (e: any) { @@ -139,9 +139,9 @@ export async function runHealthCheck() { } export function startHealthCheck() { - l( - `health check: starting (interval=${HEALTH_CHECK_INTERVAL / 1000}s, timeout=${RPC_TIMEOUT / 1000}s, max_failures=${MAX_CONSECUTIVE_FAILURES})`, - ); + // l( + // `health check: starting (interval=${HEALTH_CHECK_INTERVAL / 1000}s, timeout=${RPC_TIMEOUT / 1000}s, max_failures=${MAX_CONSECUTIVE_FAILURES})`, + // ); // Run first check after a delay to let the app initialize checkTimer = setTimeout(runHealthCheck, 30000); } |
