Skip to content

Commit

Permalink
shuffle graphd server (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicole00 committed Apr 18, 2023
1 parent 9bafb76 commit ffc5d4c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ class GraphProvider(addresses: List[Address],
case _ => throw new IllegalArgumentException("ssl sign type is not supported")
}
}
pool.init(address.asJava, nebulaPoolConfig)
val randAddr = scala.util.Random.shuffle(address)
pool.init(randAddr.asJava, nebulaPoolConfig)

var session: Session = _

Expand Down

0 comments on commit ffc5d4c

Please sign in to comment.