This commit is contained in:
Hongliang Xu 2017-01-30 23:21:31 -08:00
parent 7acb946352
commit 87dcff93b3

View File

@ -269,7 +269,7 @@ KafkaBaseProducer.prototype.produceSync = function produce(topic, producerRecord
producerRecord.value, Date.now() / 1000, 'binary');
self._produce(produceMessage, callback);
if (self.isHeatPipeTopic(topic) && self.enableAuditC3 && topic !== self.auditTopicNameC3) {
if (self.restClient.isHeatPipeTopic(topic) && self.enableAuditC3 && topic !== self.auditTopicNameC3) {
var timeBeginInSecC3 = self._getTimeBeginInSecFromHp(producerRecord.value);
self._auditNewMsg(topic, timeBeginInSecC3, 1, self.topicToMsgcntMapsAtProduce);
}