0

So I have this segment of code

def receive = identifying

def identifying: Actor.Receive = {
    case ActorIdentity(`path`, Some(actor)) =>
      context.watch(actor)
      context.become(active(actor))
      logger.info(s"Identifying actor: $path")
    case ActorIdentity(`path`, None) => 
      logger.info(s"Remote actor not available: $path")
    case ReceiveTimeout => 
      sendIdentifyRequest()
    case _ =>
      logger.info("Not ready yet")
  }

However, when I send the identify message (which is the right path) it doesn't get an ActorIdentity, it just prints "not ready yet".

When I run the server locally everything works fine. So I'm really confused as to why the server is working as intended.

4

0 回答 0