fix lint issue (#59)

This commit is contained in:
mmchen 2018-06-06 13:52:23 -07:00 committed by GitHub
parent af11d0f20d
commit cd6b7307e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -120,11 +120,11 @@ function KafkaBaseProducer(options, producerType) { // eslint-disable-line
// flush a topic's batch message every second
self.flushCycleSecs = options.flushCycleSecs || 1;
var flushCache = function flushCache() {
var cache = function flushCache() {
// eslint-disable-line
self.flushEntireCache();
};
self.flushInterval = setInterval(flushCache, self.flushCycleSecs * 1000); // eslint-disable-line
self.flushInterval = setInterval(cache, self.flushCycleSecs * 1000); // eslint-disable-line
}
if (self.enableAudit) {