fix: remove redundant line break in LoadBalancer.scala for improved readability
Build & Test (NowChessSystems) TeamCity build finished
Build & Test (NowChessSystems) TeamCity build finished
This commit is contained in:
+1
-2
@@ -109,8 +109,7 @@ class LoadBalancer:
|
|||||||
try
|
try
|
||||||
val setKey = s"$redisPrefix:instance:$instanceId:games"
|
val setKey = s"$redisPrefix:instance:$instanceId:games"
|
||||||
val result = scala.collection.mutable.ListBuffer[String]()
|
val result = scala.collection.mutable.ListBuffer[String]()
|
||||||
for _ <- 0 until count do
|
for _ <- 0 until count do Option(redis.set(classOf[String]).spop(setKey)).foreach(result += _)
|
||||||
Option(redis.set(classOf[String]).spop(setKey)).foreach(result += _)
|
|
||||||
result.toList
|
result.toList
|
||||||
catch
|
catch
|
||||||
case ex: Exception =>
|
case ex: Exception =>
|
||||||
|
|||||||
Reference in New Issue
Block a user