X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=sources%2Fhv-collector-core%2Fsrc%2Fmain%2Fkotlin%2Forg%2Fonap%2Fdcae%2Fcollectors%2Fveshv%2Fimpl%2Fadapters%2Fkafka%2FKafkaPublisher.kt;h=663fbb1216274bb234d78b7a97c44e8654a45cda;hb=f282dc63f560fe3fc3f885097f43142bfc2f9824;hp=91e6fde520d5ff1d13ff7e2469b5c2a48aa385e3;hpb=589f62651fdc96e3c76845ea2f99866f85e98d0d;p=dcaegen2%2Fcollectors%2Fhv-ves.git diff --git a/sources/hv-collector-core/src/main/kotlin/org/onap/dcae/collectors/veshv/impl/adapters/kafka/KafkaPublisher.kt b/sources/hv-collector-core/src/main/kotlin/org/onap/dcae/collectors/veshv/impl/adapters/kafka/KafkaPublisher.kt index 91e6fde5..663fbb12 100644 --- a/sources/hv-collector-core/src/main/kotlin/org/onap/dcae/collectors/veshv/impl/adapters/kafka/KafkaPublisher.kt +++ b/sources/hv-collector-core/src/main/kotlin/org/onap/dcae/collectors/veshv/impl/adapters/kafka/KafkaPublisher.kt @@ -2,7 +2,7 @@ * ============LICENSE_START======================================================= * dcaegen2-collectors-veshv * ================================================================================ - * Copyright (C) 2018-2019 NOKIA + * Copyright (C) 2018-2020 NOKIA * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -46,7 +46,7 @@ internal class KafkaPublisher(private val sender: KafkaSender): Flux = messages.map(::vesToKafkaRecord) - .compose { sender.send(it) } + .`as` { sender.send(it) } .map { val msg = it.correlationMetadata() if (it.exception() == null) {