Skip to content

Commit 6caa161

Browse files
committed
♻️ Remove unused param
1 parent 3d39a97 commit 6caa161

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/kotlin/io/github/tobi/laa/spring/boot/embedded/redis/highavailability/RedisHighAvailabilityContextCustomizer.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ internal class RedisHighAvailabilityContextCustomizer(
5959

6060
override fun customizeContext(context: ConfigurableApplicationContext, mergedConfig: MergedContextConfiguration) {
6161
RedisStore.computeIfAbsent(context) {
62-
val mainNode = createAndStartMainNode(context)
62+
val mainNode = createAndStartMainNode()
6363
try {
6464
val redisHighAvailability = createAndStartRedisInHighAvailabilityMode(mainNode)
6565
val sentinelAddresses = parseSentinelAddresses(redisHighAvailability)
@@ -97,7 +97,7 @@ internal class RedisHighAvailabilityContextCustomizer(
9797
return replicaBuilders.map { it.build() }
9898
}
9999

100-
private fun createAndStartMainNode(context: ConfigurableApplicationContext): Pair<Node, RedisServer> {
100+
private fun createAndStartMainNode(): Pair<Node, RedisServer> {
101101
nodeProvider = nodeProvider()
102102
val nextNode = nodeProvider!!.next()
103103
val builder = RedisServer.newRedisServer()

0 commit comments

Comments
 (0)