unname the socket hub

trouperTv
Thibault Duplessis 2018-12-06 16:32:42 +07:00
parent 344423601a
commit 0b69561f40
3 changed files with 1 additions and 5 deletions

View File

@ -675,7 +675,6 @@ hub {
round = ${round.socket.name}
tournament = ${tournament.socket.name}
simul = ${simul.socket.name}
hub = ${socket.hub.name}
}
channel {
round.move_time = ${round.channel.move_time.name}
@ -685,7 +684,6 @@ hub {
}
socket {
hub.name = socket.hub
move_broadcast.name = socket.move-broadcast
user_register.name = socket.user-register
population.name = socket.population

View File

@ -39,7 +39,6 @@ final class Env(config: Config, system: ActorSystem) {
// val tournament = select("socket.tournament")
val simul = select("socket.simul")
val site = select("socket.site")
val hub = select("socket.hub")
}
private def select(name: String) =

View File

@ -13,12 +13,11 @@ final class Env(
import scala.concurrent.duration._
private val HubName = config getString "hub.name"
private val MoveBroadcastName = config getString "move_broadcast.name"
private val UserRegisterName = config getString "user_register.name"
private val PopulationName = config getString "population.name"
private val socketHub = system.actorOf(Props[SocketHub], name = HubName)
private val socketHub = system.actorOf(Props[SocketHub])
private val population = system.actorOf(Props[Population], name = PopulationName)