Skip to content

Commit 2a772a8

Browse files
committed
fix(core): rpc retry timeout
1 parent 48a72ef commit 2a772a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/rpc/global.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,12 +222,12 @@ export function onRpcConnected(callback: () => void) {
222222
}
223223

224224
timer = setInterval(() => {
225-
if (retryCount >= 20) {
225+
if (retryCount >= 30) {
226226
clearTimeout(timer)
227227
}
228228
retryCount++
229229
heartbeat()
230-
}, retryCount * 80) as unknown as number
230+
}, retryCount * 200 + 200) as unknown as number
231231
heartbeat()
232232
}
233233

0 commit comments

Comments
 (0)