diff options
author | Piotr Jaszczyk <piotr.jaszczyk@nokia.com> | 2019-03-22 10:16:25 +0100 |
---|---|---|
committer | Piotr Jaszczyk <piotr.jaszczyk@nokia.com> | 2019-03-22 10:16:25 +0100 |
commit | c979ea3bd6059cb067a84ba8e6f8d1cf96d61ba2 (patch) | |
tree | e11492e6a1b41025dafea9f9cdb190c9b255bc41 /sources | |
parent | 19d31337b1168617cefdf45c18219071fb56e0c6 (diff) |
Use updated CBS Client API
Change-Id: I476900dd81d6b23e3b35a3f93c71742efdca7a6e
Issue-ID: DCAEGEN2-1363
Signed-off-by: Piotr Jaszczyk <piotr.jaszczyk@nokia.com>
Diffstat (limited to 'sources')
-rw-r--r-- | sources/hv-collector-core/src/main/kotlin/org/onap/dcae/collectors/veshv/impl/adapters/ConfigurationProviderImpl.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sources/hv-collector-core/src/main/kotlin/org/onap/dcae/collectors/veshv/impl/adapters/ConfigurationProviderImpl.kt b/sources/hv-collector-core/src/main/kotlin/org/onap/dcae/collectors/veshv/impl/adapters/ConfigurationProviderImpl.kt index 754a2efc..f96350ac 100644 --- a/sources/hv-collector-core/src/main/kotlin/org/onap/dcae/collectors/veshv/impl/adapters/ConfigurationProviderImpl.kt +++ b/sources/hv-collector-core/src/main/kotlin/org/onap/dcae/collectors/veshv/impl/adapters/ConfigurationProviderImpl.kt @@ -30,6 +30,7 @@ import org.onap.dcae.collectors.veshv.model.ServiceContext import org.onap.dcae.collectors.veshv.utils.logging.Logger import org.onap.dcae.collectors.veshv.utils.logging.onErrorLog import org.onap.dcaegen2.services.sdk.rest.services.cbs.client.api.CbsClient +import org.onap.dcaegen2.services.sdk.rest.services.cbs.client.api.CbsRequests import org.onap.dcaegen2.services.sdk.rest.services.model.logging.RequestDiagnosticContext import reactor.core.publisher.Flux import reactor.core.publisher.Mono @@ -37,7 +38,6 @@ import reactor.retry.Jitter import reactor.retry.Retry import java.time.Duration - /** * @author Jakub Dudycz <jakub.dudycz@nokia.com> * @since May 2018 @@ -76,7 +76,7 @@ internal class ConfigurationProviderImpl(private val cbsClientMono: Mono<CbsClie .flatMapMany(::handleUpdates) private fun handleUpdates(cbsClient: CbsClient): Flux<Routing> = cbsClient - .updates(RequestDiagnosticContext.create(), + .updates(CbsRequests.getConfiguration(RequestDiagnosticContext.create()), firstRequestDelay, requestInterval) .doOnNext { logger.info(ServiceContext::mdc) { "Received new configuration:\n$it" } } |