summaryrefslogtreecommitdiffhomepage
path: root/github
diff options
context:
space:
mode:
authorDax <[email protected]>2026-03-05 21:54:06 -0500
committerGitHub <[email protected]>2026-03-05 21:54:06 -0500
commit3ebba02d04d17efaa8339d94950d1467ac5c956f (patch)
treed2f1f36301ad14058c82eabf8780c34f97ac5dba /github
parentcf425d114ec66b6699240a1c92897d47c7ef1c4f (diff)
downloadopencode-3ebba02d04d17efaa8339d94950d1467ac5c956f.tar.gz
opencode-3ebba02d04d17efaa8339d94950d1467ac5c956f.zip
refactor: replace Bun.sleep with node timers (#15013)
Diffstat (limited to 'github')
-rw-r--r--github/index.ts3
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) {