mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-28 12:39:43 +00:00
refactor: replace Bun.sleep with node timers (#15013)
This commit is contained in:
parent
cf425d114e
commit
3ebba02d04
11 changed files with 29 additions and 18 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue