From 9a44d3a189fb0f8d49cbbc3cd3740a4153e71f2b Mon Sep 17 00:00:00 2001 From: Thanh Le Date: Sun, 18 Feb 2024 10:35:12 +0700 Subject: [PATCH] Fix type confg => config --- app/src/main/scala/Executor.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/scala/Executor.scala b/app/src/main/scala/Executor.scala index c034f2b..8e37fc1 100644 --- a/app/src/main/scala/Executor.scala +++ b/app/src/main/scala/Executor.scala @@ -26,7 +26,7 @@ object Executor: type State = Map[WorkId, Work.Move] - def instance(client: LilaClient, monitor: Monitor, confg: ExecutorConfig)(using Logger[IO]): IO[Executor] = + def instance(client: LilaClient, monitor: Monitor, config: ExecutorConfig)(using Logger[IO]): IO[Executor] = Ref .of[IO, State](Map.empty) .map: ref => @@ -95,9 +95,9 @@ object Executor: .flatMap(monitor.updateSize) def clearIfFull(coll: State): (State, IO[Unit]) = - if coll.size >= confg.maxSize then + if coll.size >= config.maxSize then Map.empty -> Logger[IO].warn( - s"MoveDB collection is full! maxSize=${confg.maxSize}. Dropping all now!" + s"MoveDB collection is full! maxSize=${config.maxSize}. Dropping all now!" ) else coll -> IO.unit