clean up after removing relation actor
parent
2cf0cf6f4f
commit
1c6d422d97
|
@ -171,9 +171,6 @@ relation {
|
||||||
collection {
|
collection {
|
||||||
relation = relation
|
relation = relation
|
||||||
}
|
}
|
||||||
actor {
|
|
||||||
name = relation
|
|
||||||
}
|
|
||||||
limit {
|
limit {
|
||||||
follow = 400
|
follow = 400
|
||||||
block = 500
|
block = 500
|
||||||
|
@ -492,7 +489,6 @@ hub {
|
||||||
user = ${timeline.user.actor.name}
|
user = ${timeline.user.actor.name}
|
||||||
}
|
}
|
||||||
bookmark = ${bookmark.actor.name}
|
bookmark = ${bookmark.actor.name}
|
||||||
relation = ${relation.actor.name}
|
|
||||||
report = ${report.actor.name}
|
report = ${report.actor.name}
|
||||||
shutup = ${shutup.actor.name}
|
shutup = ${shutup.actor.name}
|
||||||
mod = ${mod.actor.name}
|
mod = ${mod.actor.name}
|
||||||
|
|
|
@ -338,13 +338,6 @@ object mon {
|
||||||
val unfollow = c.withTag("type", "unfollow")
|
val unfollow = c.withTag("type", "unfollow")
|
||||||
val block = c.withTag("type", "block")
|
val block = c.withTag("type", "block")
|
||||||
val unblock = c.withTag("type", "unblock")
|
val unblock = c.withTag("type", "unblock")
|
||||||
object actor {
|
|
||||||
val computeMovement = timer("relation.actor.computeMovement.time").withoutTags
|
|
||||||
val computeMovementSync = timer("relation.actor.computeMovementSync.time").withoutTags
|
|
||||||
val reloadFriends = timer("relation.actor.reloadFriends.time").withoutTags
|
|
||||||
val gameStateChanged = timer("relation.actor.gameStateChanged.time").withoutTags
|
|
||||||
val studyStateChanged = timer("relation.actor.studyStateChanged.time").withoutTags
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
object coach {
|
object coach {
|
||||||
object pageView {
|
object pageView {
|
||||||
|
|
|
@ -19,7 +19,6 @@ object actors {
|
||||||
case class Shutup(actor: ActorSelection) extends Actor
|
case class Shutup(actor: ActorSelection) extends Actor
|
||||||
case class Mod(actor: ActorSelection) extends Actor
|
case class Mod(actor: ActorSelection) extends Actor
|
||||||
case class Notification(actor: ActorSelection) extends Actor
|
case class Notification(actor: ActorSelection) extends Actor
|
||||||
case class Relation(actor: ActorSelection) extends Actor
|
|
||||||
case class Timeline(actor: ActorSelection) extends Actor
|
case class Timeline(actor: ActorSelection) extends Actor
|
||||||
case class Report(actor: ActorSelection) extends Actor
|
case class Report(actor: ActorSelection) extends Actor
|
||||||
case class Renderer(actor: ActorSelection) extends Actor
|
case class Renderer(actor: ActorSelection) extends Actor
|
||||||
|
@ -45,7 +44,6 @@ final class Env(
|
||||||
val tournamentApi = TournamentApi(select("actor.tournament.api"))
|
val tournamentApi = TournamentApi(select("actor.tournament.api"))
|
||||||
val timeline = Timeline(select("actor.timeline.user"))
|
val timeline = Timeline(select("actor.timeline.user"))
|
||||||
val bookmark = Bookmark(select("actor.bookmark"))
|
val bookmark = Bookmark(select("actor.bookmark"))
|
||||||
val relation = Relation(select("actor.relation"))
|
|
||||||
val report = Report(select("actor.report"))
|
val report = Report(select("actor.report"))
|
||||||
val shutup = Shutup(select("actor.shutup"))
|
val shutup = Shutup(select("actor.shutup"))
|
||||||
val mod = Mod(select("actor.mod"))
|
val mod = Mod(select("actor.mod"))
|
||||||
|
|
|
@ -11,7 +11,6 @@ import lila.hub.actors
|
||||||
@Module
|
@Module
|
||||||
private class RelationConfig(
|
private class RelationConfig(
|
||||||
@ConfigName("collection.relation") val collection: CollName,
|
@ConfigName("collection.relation") val collection: CollName,
|
||||||
@ConfigName("actor.name") val actorName: String,
|
|
||||||
@ConfigName("limit.follow") val maxFollow: Max,
|
@ConfigName("limit.follow") val maxFollow: Max,
|
||||||
@ConfigName("limit.block") val maxBlock: Max
|
@ConfigName("limit.block") val maxBlock: Max
|
||||||
)
|
)
|
||||||
|
@ -20,14 +19,10 @@ private class RelationConfig(
|
||||||
final class Env(
|
final class Env(
|
||||||
appConfig: Configuration,
|
appConfig: Configuration,
|
||||||
db: lila.db.Db,
|
db: lila.db.Db,
|
||||||
relation: actors.Relation,
|
|
||||||
timeline: actors.Timeline,
|
timeline: actors.Timeline,
|
||||||
userRepo: lila.user.UserRepo,
|
userRepo: lila.user.UserRepo,
|
||||||
onlineUserIds: lila.socket.OnlineIds,
|
|
||||||
lightUserSync: lila.common.LightUser.GetterSync,
|
|
||||||
prefApi: lila.pref.PrefApi,
|
prefApi: lila.pref.PrefApi,
|
||||||
cacheApi: lila.memo.CacheApi,
|
cacheApi: lila.memo.CacheApi,
|
||||||
settingStore: lila.memo.SettingStore.Builder
|
|
||||||
)(implicit ec: scala.concurrent.ExecutionContext, system: ActorSystem) {
|
)(implicit ec: scala.concurrent.ExecutionContext, system: ActorSystem) {
|
||||||
|
|
||||||
private val config = appConfig.get[RelationConfig]("relation")(AutoConfig.loader)
|
private val config = appConfig.get[RelationConfig]("relation")(AutoConfig.loader)
|
||||||
|
|
Loading…
Reference in New Issue