Remove use of deprecated Scala features #22581
This commit is contained in:
parent
7b9342e324
commit
f8b4fb55ca
38 changed files with 224 additions and 108 deletions
|
|
@ -242,7 +242,7 @@ private[akka] class ClientFSM(name: RoleName, controllerAddr: InetSocketAddress)
|
|||
|
||||
val cmdFuture = TestConductor().transport.managementCommand(SetThrottle(t.target, t.direction, mode))
|
||||
|
||||
cmdFuture onSuccess {
|
||||
cmdFuture foreach {
|
||||
case true ⇒ self ! ToServer(Done)
|
||||
case _ ⇒ throw new RuntimeException("Throttle was requested from the TestConductor, but no transport " +
|
||||
"adapters available that support throttling. Specify `testTransport(on = true)` in your MultiNodeConfig")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue