Skip to content

Commit

Permalink
refactor(example): update advanced example (zio#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tushar Mathur authored Apr 18, 2021
1 parent 842bf69 commit 6f2b83c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions example/src/main/scala/HelloWorldAdvanced.scala
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ object HelloWorldAdvanced extends App {
}

private val server =
Server.port(PORT) ++ // Setup port
Server.disableLeakDetection ++ // Disable leak detection for better performance
Server.app(fooBar <> app) // Setup the Http app
Server.port(PORT) ++ // Setup port
Server.paranoidLeakDetection ++ // Paranoid leak detection (affects performance)
Server.app(fooBar <> app) // Setup the Http app

override def run(args: List[String]): URIO[zio.ZEnv, ExitCode] = {
// Configure thread count using CLI
Expand Down

0 comments on commit 6f2b83c

Please sign in to comment.