mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-13 19:46:16 +03:00
refactor: use Bun.sleep instead of Promise setTimeout (#6620)
This commit is contained in:
committed by
GitHub
Unverified
parent
2685de2a33
commit
d8753cda02
+1
-1
@@ -281,7 +281,7 @@ async function assertOpencodeConnected() {
|
||||
connected = true
|
||||
break
|
||||
} catch (e) {}
|
||||
await new Promise((resolve) => setTimeout(resolve, 300))
|
||||
await Bun.sleep(300)
|
||||
} while (retry++ < 30)
|
||||
|
||||
if (!connected) {
|
||||
|
||||
Reference in New Issue
Block a user