diff options
| author | rari404 <[email protected]> | 2026-01-02 12:12:02 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-01-02 11:12:02 -0600 |
| commit | d8753cda02f41e5c6264effdcfe6accd2778bc62 (patch) | |
| tree | 1c64d5b02b1b37a34254606197ee5cb13dc29268 /github/index.ts | |
| parent | 2685de2a335d374af7377cd3cb382608cde7e155 (diff) | |
| download | opencode-d8753cda02f41e5c6264effdcfe6accd2778bc62.tar.gz opencode-d8753cda02f41e5c6264effdcfe6accd2778bc62.zip | |
refactor: use Bun.sleep instead of Promise setTimeout (#6620)
Diffstat (limited to 'github/index.ts')
| -rw-r--r-- | github/index.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/github/index.ts b/github/index.ts index 2dcf6e754..73378894c 100644 --- a/github/index.ts +++ b/github/index.ts @@ -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) { |
