Skip to content

Commit

Permalink
fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
osoykan committed Apr 8, 2024
1 parent e40cdb3 commit cdcbbf2
Showing 1 changed file with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,20 +1,14 @@
package stove.spring.example.infrastructure.couchbase

import com.couchbase.client.core.env.TimeoutConfig
import com.couchbase.client.java.ClusterOptions
import com.couchbase.client.java.ReactiveBucket
import com.couchbase.client.java.ReactiveCluster
import com.couchbase.client.java.ReactiveCollection
import com.couchbase.client.java.*
import com.couchbase.client.java.codec.JacksonJsonSerializer
import com.couchbase.client.java.env.ClusterEnvironment
import com.couchbase.client.java.json.JsonValueModule
import com.couchbase.client.metrics.micrometer.MicrometerMeter
import com.fasterxml.jackson.databind.ObjectMapper
import io.micrometer.core.instrument.MeterRegistry
import org.springframework.boot.context.properties.EnableConfigurationProperties
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import org.springframework.context.annotation.Primary
import org.springframework.context.annotation.*
import stove.spring.example.infrastructure.ObjectMapperConfig
import java.time.Duration

Expand All @@ -38,8 +32,7 @@ class CouchbaseConfiguration(
.builder()
.meter(MicrometerMeter.wrap(meterRegistry))
.timeoutConfig {
TimeoutConfig.builder()
.kvTimeout(Duration.ofMillis(couchbaseProperties.kvTimeout))
it.kvTimeout(Duration.ofMillis(couchbaseProperties.kvTimeout))
.connectTimeout(Duration.ofMillis(couchbaseProperties.connectTimeout))
.queryTimeout(Duration.ofMillis(couchbaseProperties.queryTimeout))
.viewTimeout(Duration.ofMillis(couchbaseProperties.viewTimeout))
Expand Down

0 comments on commit cdcbbf2

Please sign in to comment.