Skip to content

Commit

Permalink
[INLONG-11711][SDK] SortSDK shares the same PulsarClient among differ…
Browse files Browse the repository at this point in the history
…ent SortTasks to avoid performance bottlenecks caused by too many PulsarClients
  • Loading branch information
luchunliang committed Jan 26, 2025
1 parent 2c41162 commit b155956
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,6 @@ private void updatePulsarFetcher(String clusterId, List<InLongTopic> topics) {
auth = AuthenticationFactory.token(token);
}
PulsarClient pulsarClient = PulsarClient.builder()
.useNoopDnsResolver(true)
.serviceUrl(topic.getInLongCluster().getBootstraps())
.authentication(auth)
.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,6 @@ private boolean checkAndCreateNewPulsarClient(InLongTopic topic) {
auth = AuthenticationFactory.token(token);
}
PulsarClient pulsarClient = PulsarClient.builder()
.useNoopDnsResolver(true)
.serviceUrl(topic.getInLongCluster().getBootstraps())
.authentication(auth)
.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,6 @@ private void createPulsarClient(CacheZoneCluster cluster) {
auth = AuthenticationFactory.token(token);
}
PulsarClient pulsarClient = PulsarClient.builder()
.useNoopDnsResolver(true)
.serviceUrl(cluster.getBootstraps())
.authentication(auth)
.build();
Expand Down

0 comments on commit b155956

Please sign in to comment.