File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -124,15 +124,9 @@ void Consumer::unsubscribe() {
124124
125125void Consumer::assign (const TopicPartitionList& topic_partitions) {
126126 rd_kafka_resp_err_t error;
127- if (topic_partitions.empty ()) {
128- error = rd_kafka_assign (get_handle (), nullptr );
129- check_error (error);
130- }
131- else {
132- TopicPartitionsListPtr topic_list_handle = convert (topic_partitions);
133- error = rd_kafka_assign (get_handle (), topic_list_handle.get ());
134- check_error (error, topic_list_handle.get ());
135- }
127+ TopicPartitionsListPtr topic_list_handle = convert (topic_partitions);
128+ error = rd_kafka_assign (get_handle (), topic_list_handle.get ());
129+ check_error (error, topic_list_handle.get ());
136130}
137131
138132void Consumer::unassign () {
You can’t perform that action at this time.
0 commit comments