Skip to content

Commit

Permalink
Avoid naming things when we can avoid them
Browse files Browse the repository at this point in the history
  • Loading branch information
lenguyenthanh committed Nov 25, 2023
1 parent 63a3823 commit f659f3d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions app/src/main/scala/App.scala
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,9 @@ class FishnetApp(res: AppResources, config: AppConfig)(using Logger[IO]):
lilaClient <- Resource.pure(LilaClient(res.redisPubsub))
monitor = Monitor.apply
executor <- Resource.eval(Executor.instance(lilaClient, monitor))
subscriberJob = RedisSubscriberJob(executor, res.redisPubsub)
cleaningJob = WorkCleaningJob(executor)
httpApi = HttpApi(executor, HealthCheck())
httpApi = HttpApi(executor, HealthCheck())
server <- MkHttpServer.apply.newEmber(config.server, httpApi.httpApp)
_ <- subscriberJob.run().background
_ <- cleaningJob.run().background
_ <- RedisSubscriberJob(executor, res.redisPubsub).run().background
_ <- WorkCleaningJob(executor).run().background
_ <- Resource.eval(Logger[IO].info(s"Starting server on ${config.server.host}:${config.server.port}"))
yield ()

0 comments on commit f659f3d

Please sign in to comment.