Revert "Propagate statusPromise down to the actual change in throttler, see #2877"

This reverts commit 9c1a00d020.
This commit is contained in:
Patrik Nordwall 2013-01-08 20:58:13 +01:00
parent 5d53ec0c52
commit dec4542f11
16 changed files with 22 additions and 85 deletions

View file

@ -1,6 +1,3 @@
/**
* Copyright (C) 2009-2012 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.remote
import scala.language.postfixOps
@ -403,12 +400,7 @@ private[remote] class EndpointManager(conf: Config, log: LoggingAdapter) extends
val accepting: Receive = {
case ManagementCommand(cmd, statusPromise)
val allStatuses = transportMapping.values map { transport
val p = Promise[Boolean]()
transport.managementCommand(cmd, p)
p.future
}
statusPromise completeWith Future.fold(allStatuses)(true)(_ && _)
transportMapping.values foreach { _.managementCommand(cmd, statusPromise) }
case s @ Send(message, senderOption, recipientRef)
val recipientAddress = recipientRef.path.address