mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-03 16:01:38 +00:00
refactor(node-host): trim internal exports (#107270)
This commit is contained in:
committed by
GitHub
parent
1d4188138e
commit
4dff4e95b1
@@ -8,7 +8,7 @@ const MAX_HEARTBEAT_INTERVAL_MS = 5_000;
|
||||
|
||||
type Pausable = { pause(): void; resume(): void };
|
||||
|
||||
export function resolveNodeInvokeHeartbeatInterval(idleTimeoutMs: number): number {
|
||||
function resolveNodeInvokeHeartbeatInterval(idleTimeoutMs: number): number {
|
||||
return Math.max(
|
||||
MIN_HEARTBEAT_INTERVAL_MS,
|
||||
Math.min(MAX_HEARTBEAT_INTERVAL_MS, Math.floor(idleTimeoutMs / 2)),
|
||||
|
||||
Reference in New Issue
Block a user