Adding Blockable.sync to reduce usage of resultOrException.get

This commit is contained in:
Viktor Klang 2011-12-11 01:29:46 +01:00
parent 3b1330c6d7
commit de758c0cc1
9 changed files with 54 additions and 45 deletions

View file

@ -168,7 +168,7 @@ class RemoteActorRefProvider(
actors.replace(path.toString, newFuture, actor)
actor
case actor: InternalActorRef actor
case future: Future[_] Block.on(future, system.settings.ActorTimeout.duration).resultOrException.get.asInstanceOf[InternalActorRef]
case future: Future[_] Block.sync(future, system.settings.ActorTimeout.duration).asInstanceOf[InternalActorRef]
}
}