mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
modify
This commit is contained in:
@@ -161,7 +161,7 @@ public class CanalKafkaProducer implements CanalMQProducer {
|
||||
|
||||
if (record != null) {
|
||||
if (kafkaProperties.getTransaction()) {
|
||||
producer.send(record);
|
||||
producer.send(record).get();
|
||||
} else {
|
||||
producer.send(record).get();
|
||||
}
|
||||
@@ -213,7 +213,7 @@ public class CanalKafkaProducer implements CanalMQProducer {
|
||||
if (kafkaProperties.getTransaction()) {
|
||||
producer2.send(record);
|
||||
} else {
|
||||
producer2.send(record).get();
|
||||
producer2.send(record);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user