Skip to content

Commit 6ccb603

Browse files
committed
Fixed CI errors
1 parent 5ce461e commit 6ccb603

File tree

4 files changed

+10
-18
lines changed

4 files changed

+10
-18
lines changed

e2e/both.spec.js

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -75,18 +75,14 @@ var testCase = new TestCase('Interoperability tests', function() {
7575

7676
crypto.randomBytes(4096, function(ex, buffer) {
7777

78-
consumer.on('rebalance', function(e) {
79-
if (e.code === 500) {
80-
setTimeout(function() {
81-
producer.produce({
82-
message: buffer,
83-
topic: topic
84-
}, function(err) {
85-
t.ifError(err);
86-
});
87-
}, 1000);
88-
}
89-
});
78+
setTimeout(function() {
79+
producer.produce({
80+
message: buffer,
81+
topic: topic
82+
}, function(err) {
83+
t.ifError(err);
84+
});
85+
}, 2000);
9086

9187
var tt = setInterval(function() {
9288
if (!producer.isConnected()) {

src/callbacks.cc

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -460,12 +460,9 @@ Rebalance::Rebalance(v8::Local<v8::Function> &cb) {
460460
Rebalance::~Rebalance() {}
461461

462462
void Rebalance::rebalance_cb(RdKafka::KafkaConsumer *consumer,
463-
RdKafka::ErrorCode err,
464-
std::vector<RdKafka::TopicPartition*> &partitions) {
465-
463+
RdKafka::ErrorCode err, std::vector<RdKafka::TopicPartition*> &partitions) {
466464
dispatcher.Add(rebalance_event_t(err, partitions));
467465
dispatcher.Execute();
468-
469466
}
470467

471468
// Partitioner callback

src/config.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ Conf * Conf::create(RdKafka::Conf::ConfType type, v8::Local<v8::Object> object,
7171
}
7272

7373
return rdconf;
74-
7574
}
7675

7776
void Conf::listen() {

src/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include <iostream>
1515
#include <vector>
1616
#include <list>
17+
#include <string>
1718

1819
#include "deps/librdkafka/src-cpp/rdkafkacpp.h"
1920
#include "src/common.h"
@@ -26,7 +27,6 @@ class Conf : public RdKafka::Conf {
2627
~Conf();
2728

2829
static Conf* create(RdKafka::Conf::ConfType, v8::Local<v8::Object>, std::string &); // NOLINT
29-
3030
static void DumpConfig(std::list<std::string> *);
3131

3232
void listen();

0 commit comments

Comments
 (0)