Skip to content

Commit

Permalink
fix: Default to 443 for gRPC port
Browse files Browse the repository at this point in the history
  • Loading branch information
JigarJoshi committed Sep 24, 2022
1 parent bf61e25 commit d1dc51d
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ public int hashCode() {
/** Builder class for {@link TigrisConfiguration} */
public static final class Builder {

private final String baseURL;
private static final int DEFAULT_GRPC_PORT = 443;
private String baseURL;
private TigrisConfiguration.NetworkConfig network;
private TigrisConfiguration.AuthConfig authConfig;
private ObjectMapper objectMapper;
Expand Down Expand Up @@ -134,6 +135,9 @@ public Builder withAuthConfig(AuthConfig authConfig) {
}

public TigrisConfiguration build() {
if (!this.baseURL.contains(":")) {
this.baseURL = this.baseURL + ":" + DEFAULT_GRPC_PORT;
}
return new TigrisConfiguration(this);
}

Expand Down

0 comments on commit d1dc51d

Please sign in to comment.