Skip to content

Commit

Permalink
Use apply function directly
Browse files Browse the repository at this point in the history
  • Loading branch information
lenguyenthanh committed Feb 27, 2024
1 parent 1dcb8a8 commit c08370b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/scala/Lila.scala
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,7 @@ final class Lila(config: Config)(using Executor):
connect[LilaIn.Round](chans.round),
connect[LilaIn.Challenge](chans.challenge),
connect[LilaIn.Racer](chans.racer)
).mapN:
case (site, tour, lobby, simul, team, swiss, study, round, challenge, racer) =>
Emits(site, tour, lobby, simul, team, swiss, study, round, challenge, racer)
).mapN(Emits.apply(_, _, _, _, _, _, _, _, _, _))

private def connect[In <: LilaIn](chan: Chan): Future[Emit[In]] =

Expand Down

0 comments on commit c08370b

Please sign in to comment.