Skip to content

Commit

Permalink
remove more deps to chat
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Apr 11, 2024
1 parent 17c3f25 commit b383eac
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ lazy val gathering = module("gathering",
)

lazy val tournament = module("tournament",
Seq(gathering, user, game, room, chat),
Seq(gathering, user, game, room),
Seq(scalatags, lettuce) ++ tests.bundle ++ reactivemongo.bundle
)

Expand All @@ -305,7 +305,7 @@ lazy val swiss = module("swiss",
)

lazy val simul = module("simul",
Seq(gathering, user, game, chat, room),
Seq(gathering, user, game, room),
Seq(lettuce) ++ reactivemongo.bundle
)

Expand Down
2 changes: 1 addition & 1 deletion modules/simul/src/main/Env.scala
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ final class Env(
userRepo: lila.user.UserRepo,
perfsRepo: lila.user.UserPerfsRepo,
userApi: lila.user.UserApi,
chatApi: lila.chat.ChatApi,
chat: lila.core.chat.ChatApi,
lightUser: lila.core.LightUser.GetterFallback,
onGameStart: lila.core.game.OnStart,
cacheApi: lila.memo.CacheApi,
Expand Down
2 changes: 1 addition & 1 deletion modules/simul/src/main/SimulSocket.scala
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ final private class SimulSocket(
jsonView: JsonView,
socketKit: SocketKit,
socketRequest: SocketRequester,
chat: lila.chat.ChatApi
chat: lila.core.chat.ChatApi
)(using Executor, lila.core.user.FlairGet):

def hostIsOn(simulId: SimulId, gameId: GameId): Unit =
Expand Down
2 changes: 1 addition & 1 deletion modules/tournament/src/main/Env.scala
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ final class Env(
userRepo: lila.user.UserRepo,
perfsRepo: lila.user.UserPerfsRepo,
gameProxy: lila.game.core.GameProxy,
chatApi: lila.chat.ChatApi,
chatApi: lila.core.chat.ChatApi,
roundApi: lila.game.core.RoundApi,
lightUserApi: lila.user.LightUserApi,
onStart: lila.core.game.OnStart,
Expand Down
2 changes: 1 addition & 1 deletion modules/tournament/src/main/TournamentSocket.scala
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ final private class TournamentSocket(
repo: TournamentRepo,
waitingUsers: WaitingUsersApi,
socketKit: SocketKit,
chat: lila.chat.ChatApi
chat: lila.core.chat.ChatApi
)(using Executor, ActorSystem, Scheduler, lila.core.user.FlairGet, lila.core.i18n.Translator):

private val reloadThrottler = LateMultiThrottler(executionTimeout = 1.seconds.some, logger = logger)
Expand Down

0 comments on commit b383eac

Please sign in to comment.