Skip to content

Commit 7f1268d

Browse files
committed
1 parent 902e9b3 commit 7f1268d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-kafka/src/main/java/org/springframework/kafka/core/DefaultKafkaProducerFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ private CloseSafeProducer<K, V> doCreateTxProducer(String suffix, boolean isCons
314314
Map<String, Object> configs = new HashMap<>(this.configs);
315315
configs.put(ProducerConfig.TRANSACTIONAL_ID_CONFIG, this.transactionIdPrefix + suffix);
316316
if (this.clientIdPrefix != null) {
317-
newProducerConfigs.put(ProducerConfig.CLIENT_ID_CONFIG,
317+
configs.put(ProducerConfig.CLIENT_ID_CONFIG,
318318
this.clientIdPrefix + "-" + this.clientIdCounter.incrementAndGet());
319319
}
320320
producer = new KafkaProducer<K, V>(configs, this.keySerializer, this.valueSerializer);

0 commit comments

Comments
 (0)