Skip to content

Commit

Permalink
chore: rename function (#25)
Browse files Browse the repository at this point in the history
Signed-off-by: wei <[email protected]>
  • Loading branch information
instpe authored Sep 1, 2024
1 parent 9ed343f commit ab23742
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public interface PulsarAdminBuilder {

PulsarAdminBuilder port(int port);

PulsarAdminBuilder useSsl(boolean useSsl);
PulsarAdminBuilder tlsEnabled(boolean useSsl);

PulsarAdminBuilder tlsConfig(TlsConfig tlsConfig);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public PulsarAdminBuilder port(int port) {
}

@Override
public PulsarAdminBuilder useSsl(boolean useSsl) {
public PulsarAdminBuilder tlsEnabled(boolean useSsl) {
this.conf.tlsEnabled(useSsl);
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public static void setup() throws Exception {
private PulsarAdmin createPulsarAdmin(TlsConfig tlsConfig) throws PulsarAdminException {
return PulsarAdmin.builder()
.port(server.getWebPort())
.useSsl(true)
.tlsEnabled(true)
.tlsConfig(tlsConfig)
.build();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public void testTlsByVerifyAndNoHostnameVerification() throws PulsarAdminExcepti
);
PulsarAdmin pulsarAdmin = PulsarAdmin.builder()
.port(server.getWebPort())
.useSsl(true)
.tlsEnabled(true)
.tlsConfig(tlsConfig)
.build();
Assertions.assertThrows(PulsarAdminException.class, () -> pulsarAdmin.brokers().healthcheck(TopicVersion.V1));
Expand Down

0 comments on commit ab23742

Please sign in to comment.