Skip to content

Commit

Permalink
Add the dash as the delimiter
Browse files Browse the repository at this point in the history
  • Loading branch information
BewareMyPower committed Apr 4, 2023
1 parent 1f3da40 commit 2114f3a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ public void testClientVersion() throws Exception {
assertEquals(stats.getPublishers().size(), 2);

assertEquals(stats.getPublishers().stream().map(PublisherStats::getClientVersion).collect(Collectors.toSet()),
Sets.newHashSet(defaultClientVersion, defaultClientVersion + "my-java-client"));
Sets.newHashSet(defaultClientVersion, defaultClientVersion + "-my-java-client"));

producer1.close();
producer2.close();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4607,7 +4607,7 @@ public void testClientVersion() throws Exception {
assertEquals(stats.getPublishers().size(), 2);

assertEquals(stats.getPublishers().stream().map(PublisherStats::getClientVersion).collect(Collectors.toSet()),
Sets.newHashSet(defaultClientVersion, defaultClientVersion + "my-java-client"));
Sets.newHashSet(defaultClientVersion, defaultClientVersion + "-my-java-client"));

producer1.close();
producer2.close();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ public ClientCnx(ClientConfigurationData conf, EventLoopGroup eventLoopGroup, in
this.protocolVersion = protocolVersion;
this.idleState = new ClientCnxIdleState(this);
this.clientVersion = "Pulsar-Java-v" + PulsarVersion.getVersion()
+ (conf.getDescription() == null ? "" : conf.getDescription());
+ (conf.getDescription() == null ? "" : ("-" + conf.getDescription()));
}

@Override
Expand Down

0 comments on commit 2114f3a

Please sign in to comment.