mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-10-29 18:52:45 +08:00
style(vscode): format SSE reconnect adapter
This commit is contained in:
@@ -210,9 +210,7 @@ export class SdkSSEAdapter {
|
||||
}
|
||||
|
||||
const wait = delay
|
||||
delay = ready
|
||||
? SdkSSEAdapter.RECONNECT_DELAY_MS
|
||||
: Math.min(delay * 2, SdkSSEAdapter.MAX_RECONNECT_DELAY_MS)
|
||||
delay = ready ? SdkSSEAdapter.RECONNECT_DELAY_MS : Math.min(delay * 2, SdkSSEAdapter.MAX_RECONNECT_DELAY_MS)
|
||||
console.log(`[Kilo New] SSE: 🔄 Reconnecting in ${wait}ms...`)
|
||||
this.notifyState("connecting")
|
||||
await new Promise((resolve) => setTimeout(resolve, wait))
|
||||
|
||||
Reference in New Issue
Block a user