Skip to content

Commit

Permalink
remove readline
Browse files Browse the repository at this point in the history
  • Loading branch information
paulpdaniels committed May 15, 2024
1 parent 58b682e commit f6c7024
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apollo-compatibility/src/main/scala/Main.scala
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ object Main extends ZIOAppDefault {
ProductService with UserService with InventoryService with Server,
CalibanError.ValidationError,
Int
] = (ProductSchema.api.toApp("/graphql") flatMap Server.install)
] = (ProductSchema.api.toApp("/graphql") flatMap Server.serve)

(server *> Console.printLine("Press any key to exit...") *> Console.readLine).orDie
server.orDie
.provide(
Server.defaultWithPort(4001),
ProductService.inMemory,
Expand Down

0 comments on commit f6c7024

Please sign in to comment.