Skip to content

Commit

Permalink
wip worker
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-smart committed Sep 10, 2024
1 parent 99f4e53 commit 13065a0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/platform/src/internal/worker.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import * as Schema from "@effect/schema/Schema"
import * as Serializable from "@effect/schema/Serializable"
import * as Cause from "effect/Cause"
import * as Channel from "effect/Channel"
import * as Context from "effect/Context"
import * as Deferred from "effect/Deferred"
Expand Down Expand Up @@ -138,7 +137,7 @@ export const makeManager = Effect.gen(function*() {
if (response[1] === 2) {
return Deferred.DeferredTypeId in mailbox
? Deferred.fail(mailbox, response[2])
: mailbox.failCause(Cause.fail(response[2]))
: mailbox.fail(response[2])
}
const cause = WorkerError.decodeCause(response[2])
return Deferred.DeferredTypeId in mailbox
Expand Down

0 comments on commit 13065a0

Please sign in to comment.