fix move monitoring
This commit is contained in:
parent
8239f226c9
commit
f8898d7b04
|
@ -123,7 +123,7 @@ final class Env(
|
|||
|
||||
private def notifyMove(gameId: String, fen: String, lastMove: Option[String]) {
|
||||
hub.socket.hub ! lila.socket.actorApi.Fen(gameId, fen, lastMove)
|
||||
hub.socket.monitor ! lila.hub.actorApi.monitor.AddMove
|
||||
hub.actor.monitor ! lila.hub.actorApi.monitor.AddMove
|
||||
}
|
||||
|
||||
private[round] lazy val roomColl = db(CollectionRoom)
|
||||
|
|
|
@ -1,16 +0,0 @@
|
|||
package lila.round
|
||||
|
||||
import akka.actor.ActorRef
|
||||
|
||||
import lila.hub.actorApi.monitor.AddMove
|
||||
import lila.socket.actorApi.Fen
|
||||
|
||||
private[round] final class MoveNotifier(
|
||||
hub: ActorRef,
|
||||
monitor: lila.hub.ActorLazyRef) {
|
||||
|
||||
def apply(gameId: String, fen: String, lastMove: Option[String]) {
|
||||
hub ! Fen(gameId, fen, lastMove)
|
||||
monitor ! AddMove
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue