mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-22 11:25:15 +00:00
refactor(server): rename Fence.waitEffect to Fence.wait (#28717)
This commit is contained in:
parent
86907e2e4a
commit
2935d1819e
2 changed files with 2 additions and 2 deletions
|
|
@ -131,7 +131,7 @@ function proxyRemote(
|
|||
const response = yield* HttpApiProxy.http(client, proxyURL, target.headers, request)
|
||||
const sync = Fence.parse(new Headers(response.headers))
|
||||
if (sync) {
|
||||
const syncFailure = yield* Fence.waitEffect(
|
||||
const syncFailure = yield* Fence.wait(
|
||||
workspace.id,
|
||||
sync,
|
||||
request.source instanceof Request ? request.source.signal : undefined,
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ export function parse(headers: Headers): State | undefined {
|
|||
)
|
||||
}
|
||||
|
||||
export function waitEffect(workspaceID: WorkspaceID, state: State, signal?: AbortSignal) {
|
||||
export function wait(workspaceID: WorkspaceID, state: State, signal?: AbortSignal) {
|
||||
return Effect.gen(function* () {
|
||||
log.info("waiting for state", {
|
||||
workspaceID,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue