removed success counter as it was redundant

This commit is contained in:
aishwarya-raimule
2023-02-02 17:47:11 +05:30
parent c99ad50f54
commit bb1cc2d292
3 changed files with 0 additions and 16 deletions

View File

@@ -16,13 +16,6 @@ func WriteMessageToKafkaAsync(message *sarama.ProducerMessage, source string) {
logger.Debug("SUCCESSFULLY WRITTEN TO KAFKA FOR SOURCE " + source)
}
func processProducerSuccesses() {
for {
msg := <-asyncProducer.Successes()
metrics.ProducerSuccessCounter.WithLabelValues(msg.Topic).Inc()
}
}
func processProducerErrors() {
for {
err := <-asyncProducer.Errors()

View File

@@ -92,7 +92,6 @@ func GetAsyncProducer(kafkaConfiguration config.KafkaConfigurations, env string)
panic(err)
}
go processProducerSuccesses()
go processProducerErrors()
return producer
}