Skip to content

Commit

Permalink
upgrade client
Browse files Browse the repository at this point in the history
  • Loading branch information
jxnu-liguobin committed Sep 27, 2023
1 parent 3a5c73a commit e85ea09
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ There are the version correspondence between zio-nebula and nebula-java:
|:-----:|:----------:|:-----------:|
| 2.0.x | 0.0.x | 3.6.0 |
| 2.0.x | 0.1.x | 3.6.0 |
| 2.0.x | 0.1.1 | 3.6.1 |


## Example
Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ val scala3_Version = "3.3.1"
val scala2_13Version = "2.13.12"
val scala2_12Version = "2.12.18"
val zioConfigVersion = "4.0.0-RC16"
val nebulaClientVersion = "3.6.0"
val nebulaClientVersion = "3.6.1"
val logbackVersion = "1.4.5"
val silencerVersion = "1.4.2"

Expand Down
3 changes: 2 additions & 1 deletion core/src/main/scala/zio/nebula/NebulaConfig.scala
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ final case class NebulaSessionPoolConfig(
intervalTimeMills: Int = 0,
healthCheckTimeSeconds: Int = 600,
cleanTimeSeconds: Int = 3600,
reconnect: Boolean = false
reconnect: Boolean = false,
useHttp2: Boolean = false
)

object NebulaConfig {
Expand Down
1 change: 1 addition & 0 deletions core/src/main/scala/zio/nebula/NebulaSessionClient.scala
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ object NebulaSessionClient {
.setCleanTime(nebulaConfig.cleanTimeSeconds)
.setReconnect(nebulaConfig.reconnect)
.setHealthCheckTime(nebulaConfig.healthCheckTimeSeconds)
.setUseHttp2(nebulaConfig.useHttp2)
)
)
)(release => ZIO.attempt(release.close()).onError(e => ZIO.logErrorCause(e)).ignoreLogged)
Expand Down

0 comments on commit e85ea09

Please sign in to comment.