Skip to content

Commit 0fbfaf8

Browse files
Use brokerClientTlsEnabled to configure pulsar client (#87)
1 parent 7a3775a commit 0fbfaf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kafka-impl/src/main/java/io/streamnative/pulsar/handlers/kop/AbstractPulsarClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public static PulsarClientImpl createPulsarClient(final PulsarService pulsarServ
6464
final Consumer<ClientConfigurationData> customConfig) {
6565
// It's migrated from PulsarService#getClient()
6666
final ClientConfigurationData conf = new ClientConfigurationData();
67-
conf.setServiceUrl(kafkaConfig.isTlsEnabled()
67+
conf.setServiceUrl(kafkaConfig.isBrokerClientTlsEnabled()
6868
? pulsarService.getBrokerServiceUrlTls()
6969
: pulsarService.getBrokerServiceUrl());
7070
conf.setTlsAllowInsecureConnection(kafkaConfig.isTlsAllowInsecureConnection());

0 commit comments

Comments
 (0)