format source with scalafmt

This commit is contained in:
Auto Format 2019-03-11 10:38:24 +01:00 committed by Patrik Nordwall
parent 0f40491d42
commit ce404e4f53
1669 changed files with 43208 additions and 35404 deletions

View file

@ -64,7 +64,10 @@ object MultiDcSingleton {
case class Pong(fromDc: String, fromAddress: Address, roles: Set[String])
}
abstract class MultiDcSingletonManagerSpec extends MultiNodeSpec(MultiDcSingletonManagerSpec) with STMultiNodeSpec with ImplicitSender {
abstract class MultiDcSingletonManagerSpec
extends MultiNodeSpec(MultiDcSingletonManagerSpec)
with STMultiNodeSpec
with ImplicitSender {
import MultiDcSingletonManagerSpec._
override def initialParticipants = roles.size
@ -79,17 +82,14 @@ abstract class MultiDcSingletonManagerSpec extends MultiNodeSpec(MultiDcSingleto
"start a singleton instance for each data center" in {
runOn(first, second, third) {
system.actorOf(
ClusterSingletonManager.props(
Props[MultiDcSingleton](),
PoisonPill,
ClusterSingletonManagerSettings(system).withRole(worker)),
"singletonManager")
system.actorOf(ClusterSingletonManager.props(Props[MultiDcSingleton](),
PoisonPill,
ClusterSingletonManagerSettings(system).withRole(worker)),
"singletonManager")
}
val proxy = system.actorOf(ClusterSingletonProxy.props(
"/user/singletonManager",
ClusterSingletonProxySettings(system).withRole(worker)))
val proxy = system.actorOf(
ClusterSingletonProxy.props("/user/singletonManager", ClusterSingletonProxySettings(system).withRole(worker)))
enterBarrier("managers-started")
@ -112,9 +112,9 @@ abstract class MultiDcSingletonManagerSpec extends MultiNodeSpec(MultiDcSingleto
"be able to use proxy across different data centers" in {
runOn(third) {
val proxy = system.actorOf(ClusterSingletonProxy.props(
"/user/singletonManager",
ClusterSingletonProxySettings(system).withRole(worker).withDataCenter("one")))
val proxy = system.actorOf(
ClusterSingletonProxy.props("/user/singletonManager",
ClusterSingletonProxySettings(system).withRole(worker).withDataCenter("one")))
proxy ! MultiDcSingleton.Ping
val pong = expectMsgType[MultiDcSingleton.Pong](10.seconds)
pong.fromDc should ===("one")