Skip to content

Commit

Permalink
Fix type confg => config
Browse files Browse the repository at this point in the history
  • Loading branch information
lenguyenthanh committed Feb 18, 2024
1 parent 07eef60 commit 9a44d3a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/src/main/scala/Executor.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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 =>
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 9a44d3a

Please sign in to comment.