format source with scalafmt, #26511
This commit is contained in:
parent
2ba9b988df
commit
75579bed17
779 changed files with 15729 additions and 13096 deletions
|
|
@ -82,10 +82,10 @@ abstract class MultiDcSingletonManagerSpec
|
|||
"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(
|
||||
|
|
@ -113,8 +113,9 @@ abstract class MultiDcSingletonManagerSpec
|
|||
"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")))
|
||||
ClusterSingletonProxy.props(
|
||||
"/user/singletonManager",
|
||||
ClusterSingletonProxySettings(system).withRole(worker).withDataCenter("one")))
|
||||
proxy ! MultiDcSingleton.Ping
|
||||
val pong = expectMsgType[MultiDcSingleton.Pong](10.seconds)
|
||||
pong.fromDc should ===("one")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue