diff --git a/bundle/config.ts b/bundle/config.ts index 0c0a1f7a2b..7badb355a6 100644 --- a/bundle/config.ts +++ b/bundle/config.ts @@ -1,4 +1,4 @@ import * as Config from "#dist/effect/config/Config" import * as Effect from "#dist/effect/Effect" -Effect.runFork(Config.String("ENV")) +Effect.runFork(Config.String("ENV").asEffect()) diff --git a/bundle/schema-string-async.ts b/bundle/schema-string-async.ts index 4ac689b654..70eb08e512 100644 --- a/bundle/schema-string-async.ts +++ b/bundle/schema-string-async.ts @@ -1,6 +1,5 @@ import * as Duration from "#dist/effect/Duration" import * as Effect from "#dist/effect/Effect" -import * as Result from "#dist/effect/Result" import * as Schema from "#dist/effect/schema/Schema" import * as Transformation from "#dist/effect/schema/Transformation" @@ -12,7 +11,7 @@ const schema = Schema.String.pipe(Schema.decodeTo( yield* Effect.clockWith((clock) => clock.sleep(Duration.millis(300))) return s }), - encode: Result.ok + encode: (_) => Effect.succeed(_) }) ))