fix(partnerctl-init): use numeric default for heartbeat interval prompt

This commit is contained in:
2026-05-05 17:33:44 +08:00
parent 1bf02f543e
commit 0710f60ed6

View File

@@ -20,7 +20,7 @@ fun configureWebSocketGateway(prompt: Prompt): GatewayConfig.ChannelConfig {
if (intValue !in 1..65565) "WebSocket port should be between 1 and 65565" else null
}.toInt()
val heartbeatInterval = prompt.ask("heartbeat interval", "10_000L") {
val heartbeatInterval = prompt.ask("heartbeat interval", "10000") {
it.toLongOrNull() ?: return@ask "Heartbeat interval only accepts long value"
return@ask null
}.toLong()