Skip to content

Commit 25a600c

Browse files
authored
fix: Primary to reactiveRedisTemplate and reactiveRedisConnection (#132)
* fix: Primary to reactiveRedisTemplate and reactiveRedisConnection * docs: version 0.4.0 to 0.4.1
1 parent c5362a2 commit 25a600c

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
<br>
66

7-
![version 0.4.0](https://img.shields.io/badge/version-0.4.0-black?labelColor=black&style=flat-square) ![jdk 17](https://img.shields.io/badge/minimum_jdk-17-orange?labelColor=black&style=flat-square) ![load-test](https://img.shields.io/badge/load%20test%2010%2C000%2C000-success-brightgreen?labelColor=black&style=flat-square)
7+
![version 0.4.1](https://img.shields.io/badge/version-0.4.1-black?labelColor=black&style=flat-square) ![jdk 17](https://img.shields.io/badge/minimum_jdk-17-orange?labelColor=black&style=flat-square) ![load-test](https://img.shields.io/badge/load%20test%2010%2C000%2C000-success-brightgreen?labelColor=black&style=flat-square)
88
![redis--stream](https://img.shields.io/badge/-redis--stream-da2020?style=flat-square&logo=Redis&logoColor=white)
99

1010
**TPS(6,000)** on my Macbook air m2(default options). _[link](#Test1-TPS)_

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ kotlin.code.style=official
22

33
### Project ###
44
group=org.rooftopmsa
5-
version=0.4.0
5+
version=0.4.1
66
compatibility=17
77

88
### Sonarcloud ###

gradle/publish.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ publishing {
3535
licenses {
3636
license {
3737
name = 'The Apache License, Version 2.0'
38-
url = 'https://github.com/devxb/Netx/blob/main/LICENSE'
38+
url = 'https://github.com/devxb/netx/blob/main/LICENSE'
3939
}
4040
}
4141

settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11

2-
rootProject.name = 'Netx'
2+
rootProject.name = 'netx'
33

src/main/kotlin/org/rooftop/netx/redis/RedisSagaConfigurer.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty
1616
import org.springframework.context.ApplicationContext
1717
import org.springframework.context.annotation.Bean
1818
import org.springframework.context.annotation.Configuration
19+
import org.springframework.context.annotation.Primary
1920
import org.springframework.data.redis.connection.ReactiveRedisConnectionFactory
2021
import org.springframework.data.redis.connection.RedisPassword
2122
import org.springframework.data.redis.connection.RedisStandaloneConfiguration
@@ -150,6 +151,7 @@ class RedisSagaConfigurer(
150151
}
151152

152153
@Bean
154+
@Primary
153155
@ConditionalOnProperty(prefix = "netx", name = ["mode"], havingValue = "redis")
154156
internal fun sagaReactiveRedisTemplate(): ReactiveRedisTemplate<String, Saga> {
155157
val keySerializer = StringRedisSerializer()
@@ -165,6 +167,7 @@ class RedisSagaConfigurer(
165167
}
166168

167169
@Bean
170+
@Primary
168171
@ConditionalOnProperty(prefix = "netx", name = ["mode"], havingValue = "redis")
169172
internal fun reactiveRedisTemplate(): ReactiveRedisTemplate<String, String> {
170173
val keySerializer = StringRedisSerializer()
@@ -179,6 +182,7 @@ class RedisSagaConfigurer(
179182
}
180183

181184
@Bean
185+
@Primary
182186
@ConditionalOnProperty(prefix = "netx", name = ["mode"], havingValue = "redis")
183187
internal fun reactiveRedisConnectionFactory(): ReactiveRedisConnectionFactory {
184188
val port: String = System.getProperty("netx.port") ?: port

0 commit comments

Comments
 (0)