Skip to content

Commit

Permalink
retire live explorer indexer
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasf committed Mar 11, 2023
1 parent 7a5d8ec commit 9b7fb7b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 148 deletions.
1 change: 0 additions & 1 deletion app/controllers/Dev.scala
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ final class Dev(env: Env) extends LilaController(env):
env.mailer.mailerSecondaryPermilleSetting,
env.irwin.irwinApi.thresholds,
env.irwin.kaladinApi.thresholds,
env.explorer.indexFlowSetting,
env.report.scoreThresholdsSetting,
env.report.discordScoreThresholdSetting,
env.round.selfReportEndGame,
Expand Down
13 changes: 0 additions & 13 deletions modules/explorer/src/main/Env.scala
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,4 @@ final class Env(
appConfig.get[String]("explorer.internal_endpoint")
}

private lazy val indexer: ExplorerIndexer = wire[ExplorerIndexer]

lazy val importer = wire[ExplorerImporter]

lazy val indexFlowSetting = settingStore[Boolean](
"explorerIndexFlow",
default = false,
text = "Explorer: index new games as soon as they complete".some
)

lila.common.Bus.subscribeFun("finishGame") {
case lila.game.actorApi.FinishGame(game, _, _) if !game.aborted && indexFlowSetting.get() =>
indexer(game).unit
}
134 changes: 0 additions & 134 deletions modules/explorer/src/main/ExplorerIndexer.scala

This file was deleted.

0 comments on commit 9b7fb7b

Please sign in to comment.