Skip to content

Commit ebfce88

Browse files
committed
fix: Remove unnecessary codes
1 parent 166b5c6 commit ebfce88

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

docker-controller-scala-zookeeper/src/main/scala/com/github/j5ik2o/dockerController/zooKeeper/ZooKeeperController.scala

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,7 @@ class ZooKeeperController(
4949
networkAlias: Option[NetworkAlias] = None
5050
) extends DockerControllerImpl(dockerClient, outputFrameInterval)(imageName, imageTag) {
5151

52-
private def environmentVariables(myId: Int) = {
53-
// val defaultEnvVarsExcludeAarch64 = if (sys.props("os.arch") == "aarch64") {
54-
// Map.empty
55-
// } else {
56-
// Map("ZOO_SERVERS" -> s"server.$myId=0.0.0.0:2888:3888")
57-
// }
52+
private def environmentVariables(myId: Int): Map[String, String] = {
5853
Map(
5954
"ZOO_MY_ID" -> myId.toString,
6055
"ZOO_PORT" -> containerPort.toString

docker-controller-scala-zookeeper/src/test/scala/com/github/j5ik2o/dockerController/ZooKeeperControllerSpec.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ class ZooKeeperControllerSpec extends AnyFreeSpec with DockerControllerSpecSuppo
1818

1919
override protected val dockerControllers: Vector[DockerController] = Vector(zooKeeperController)
2020

21-
// val waitPredicate: WaitPredicate = WaitPredicates.forListeningHostTcpPort(dockerHost, minioPort)
2221
val waitPredicate: WaitPredicate =
2322
WaitPredicates.forLogMessageByRegex(ZooKeeperController.RegexForWaitPredicate, Some((1 * testTimeFactor).seconds))
2423

0 commit comments

Comments
 (0)