Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed May 20, 2024
1 parent c0ffda6 commit a6ed7f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/scala/App.scala
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ object App extends IOApp.Simple:
class FishnetApp(res: AppResources, config: AppConfig)(using Logger[IO]):
def run(): Resource[IO, Unit] =
for
executor <- createExcutor
executor <- createExecutor
httpApp = HttpApi(executor, HealthCheck(), config.server).httpApp
server <- MkHttpServer.apply.newEmber(config.server, httpApp)
_ <- RedisSubscriberJob(executor, res.redisPubsub).run()
_ <- WorkCleaningJob(executor).run()
_ <- Logger[IO].info(s"Starting server on ${config.server.host}:${config.server.port}").toResource
yield ()

private def createExcutor: Resource[IO, Executor] =
private def createExecutor: Resource[IO, Executor] =
val lilaClient = LilaClient(res.redisPubsub)
val repository = StateRepository.instance(config.repository.path)
Executor.instance(lilaClient, repository, Monitor(), config.executor)

0 comments on commit a6ed7f7

Please sign in to comment.