Skip to content

Commit

Permalink
fix: Primary to reactiveRedisTemplate and reactiveRedisConnection (#132)
Browse files Browse the repository at this point in the history
* fix: Primary to reactiveRedisTemplate and reactiveRedisConnection

* docs: version 0.4.0 to 0.4.1
  • Loading branch information
devxb authored Apr 6, 2024
1 parent c5362a2 commit 25a600c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<br>

![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)
![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)
![redis--stream](https://img.shields.io/badge/-redis--stream-da2020?style=flat-square&logo=Redis&logoColor=white)

**TPS(6,000)** on my Macbook air m2(default options). _[link](#Test1-TPS)_
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ kotlin.code.style=official

### Project ###
group=org.rooftopmsa
version=0.4.0
version=0.4.1
compatibility=17

### Sonarcloud ###
Expand Down
2 changes: 1 addition & 1 deletion gradle/publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ publishing {
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'https://github.com/devxb/Netx/blob/main/LICENSE'
url = 'https://github.com/devxb/netx/blob/main/LICENSE'
}
}

Expand Down
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@

rootProject.name = 'Netx'
rootProject.name = 'netx'

4 changes: 4 additions & 0 deletions src/main/kotlin/org/rooftop/netx/redis/RedisSagaConfigurer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty
import org.springframework.context.ApplicationContext
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import org.springframework.context.annotation.Primary
import org.springframework.data.redis.connection.ReactiveRedisConnectionFactory
import org.springframework.data.redis.connection.RedisPassword
import org.springframework.data.redis.connection.RedisStandaloneConfiguration
Expand Down Expand Up @@ -150,6 +151,7 @@ class RedisSagaConfigurer(
}

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

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

@Bean
@Primary
@ConditionalOnProperty(prefix = "netx", name = ["mode"], havingValue = "redis")
internal fun reactiveRedisConnectionFactory(): ReactiveRedisConnectionFactory {
val port: String = System.getProperty("netx.port") ?: port
Expand Down

0 comments on commit 25a600c

Please sign in to comment.