diff options
| author | Dax <[email protected]> | 2026-03-05 21:54:06 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-03-05 21:54:06 -0500 |
| commit | 3ebba02d04d17efaa8339d94950d1467ac5c956f (patch) | |
| tree | d2f1f36301ad14058c82eabf8780c34f97ac5dba /github | |
| parent | cf425d114ec66b6699240a1c92897d47c7ef1c4f (diff) | |
| download | opencode-3ebba02d04d17efaa8339d94950d1467ac5c956f.tar.gz opencode-3ebba02d04d17efaa8339d94950d1467ac5c956f.zip | |
refactor: replace Bun.sleep with node timers (#15013)
Diffstat (limited to 'github')
| -rw-r--r-- | github/index.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/github/index.ts b/github/index.ts index da310178a..1a0a99262 100644 --- a/github/index.ts +++ b/github/index.ts @@ -8,6 +8,7 @@ import type { Context as GitHubContext } from "@actions/github/lib/context" import type { IssueCommentEvent, PullRequestReviewCommentEvent } from "@octokit/webhooks-types" import { createOpencodeClient } from "@opencode-ai/sdk" import { spawn } from "node:child_process" +import { setTimeout as sleep } from "node:timers/promises" type GitHubAuthor = { login: string @@ -281,7 +282,7 @@ async function assertOpencodeConnected() { connected = true break } catch (e) {} - await Bun.sleep(300) + await sleep(300) } while (retry++ < 30) if (!connected) { |
