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

@ -30,9 +30,10 @@ object LotsOfDataBot {
def startup(ports: Seq[String]): Unit = {
ports.foreach { port =>
// Override the configuration of the port
val config = ConfigFactory.parseString("akka.remote.netty.tcp.port=" + port).
withFallback(ConfigFactory.load(
ConfigFactory.parseString("""
val config = ConfigFactory
.parseString("akka.remote.netty.tcp.port=" + port)
.withFallback(
ConfigFactory.load(ConfigFactory.parseString("""
passive = off
max-entries = 100000
akka.actor.provider = "cluster"
@ -107,7 +108,7 @@ class LotsOfDataBot extends Actor with ActorLogging {
replicator ! Update(key, ORSet(), WriteLocal)(_ :+ s)
} else {
// remove
replicator ! Update(key, ORSet(), WriteLocal)(_ remove s)
replicator ! Update(key, ORSet(), WriteLocal)(_.remove(s))
}
}
@ -136,4 +137,3 @@ class LotsOfDataBot extends Actor with ActorLogging {
override def postStop(): Unit = tickTask.cancel()
}