Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Commit

Permalink
fix examples
Browse files Browse the repository at this point in the history
  • Loading branch information
IMax153 committed Dec 5, 2023
1 parent c5a79f8 commit cced499
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion packages/platform-bun/examples/http-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,5 @@ Effect.flatMap(
).pipe(
Effect.tap(Effect.log),
Effect.provide(TodoServiceLive),
Effect.tapErrorCause(Effect.logError),
runMain
)
1 change: 0 additions & 1 deletion packages/platform-bun/examples/http-router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,5 @@ const EnvLive = Layer.merge(ServerLive, NodeContext.layer)
serve.pipe(
Effect.scoped,
Effect.provide(EnvLive),
Effect.tapErrorCause(Effect.logError),
runMain
)
1 change: 0 additions & 1 deletion packages/platform-bun/examples/http-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@ const ServerLive = Http.server.layer({ port: 3000 })
Http.server.serve(Effect.succeed(Http.response.text("Hello World"))).pipe(
Effect.scoped,
Effect.provide(ServerLive),
Effect.tapErrorCause(Effect.logError),
runMain
)
1 change: 0 additions & 1 deletion packages/platform-node/examples/http-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,5 @@ Effect.flatMap(
).pipe(
Effect.tap(Effect.log),
Effect.provide(TodoServiceLive),
Effect.tapErrorCause(Effect.logError),
runMain
)
1 change: 0 additions & 1 deletion packages/platform-node/examples/http-router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,5 @@ const HttpLive = Layer.scopedDiscard(serve).pipe(
)

Layer.launch(HttpLive).pipe(
Effect.tapErrorCause(Effect.logError),
runMain
)
1 change: 0 additions & 1 deletion packages/platform-node/examples/http-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,5 @@ const ServerLive = Http.server.layer(() => createServer(), { port: 3000 })
Http.server.serve(Effect.succeed(Http.response.text("Hello World"))).pipe(
Effect.scoped,
Effect.provide(ServerLive),
Effect.tapErrorCause(Effect.logError),
runMain
)
1 change: 0 additions & 1 deletion packages/platform-node/examples/terminal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ const program = Effect.gen(function*(_) {
const MainLive = Terminal.layer

program.pipe(
Effect.tapErrorCause(Effect.logError),
Effect.provide(MainLive),
Runtime.runMain
)

0 comments on commit cced499

Please sign in to comment.