Big boss of summer tournament

This commit is contained in:
Viktor Kholodov
2021-09-04 04:33:27 +03:00
parent 208dd5936d
commit a4a74f5c6f
5 changed files with 18 additions and 19 deletions
-2
View File
@@ -31,14 +31,12 @@ class LobbiesActor extends Actor with LazyLogging {
case None => logger.error(s"Can't watch lobby $lobbyName - lobby not exists")
}
case ObserveLobbyByActorName(lobbyName) =>
// get or create the StockActor for the symbol and forward this message
val user = sender
context.child(lobbyName) match {
case Some(lobbyActor) => lobbyActor.tell(WatchLobby("watchIt"), user)
case None => logger.error(s"Can't watch lobby $lobbyName - lobby not exists")
}
case watchLobby@WatchLobby(lobbyName) =>
// get or create the StockActor for the symbol and forward this message
context.child(lobbyName) match {
case Some(lobbyActor) => lobbyActor forward watchLobby
case None => logger.error(s"Can't watch lobby $lobbyName - lobby not exists")