Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
Change-Id: Ib7a52c98c113479b5db603fc241f0e0e0c660670
  • Loading branch information
igorbernstein2 committed Oct 11, 2024
1 parent 70f4a9b commit a47be74
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ public boolean apply(InetSocketAddress input) {
private final String projectId;
private final String instanceId;
private final String tableId;
private final String tracingCookie;
private final String kmsKeyName;

private final BigtableDataSettings.Builder dataSettings;
Expand All @@ -110,7 +109,7 @@ static CloudEnv fromSystemProperties() {
getOptionalProperty(CMEK_KMS_KEY_PROPERTY_NAME, ""),
getRequiredProperty(PROJECT_PROPERTY_NAME),
getRequiredProperty(INSTANCE_PROPERTY_NAME),
getRequiredProperty(APP_PROFILE_PROPERTY_NAME),
getOptionalProperty(APP_PROFILE_PROPERTY_NAME),
getRequiredProperty(TABLE_PROPERTY_NAME),
getOptionalProperty(TRACING_COOKIE_PROPERTY_NAME));
}
Expand All @@ -128,14 +127,16 @@ private CloudEnv(
this.instanceId = instanceId;
this.appProfileId = appProfileId;
this.tableId = tableId;
this.tracingCookie = tracingCookie;
this.kmsKeyName = kmsKeyName;

this.dataSettings =
BigtableDataSettings.newBuilder().setProjectId(projectId).setInstanceId(instanceId);
if (!Strings.isNullOrEmpty(dataEndpoint)) {
dataSettings.stubSettings().setEndpoint(dataEndpoint);
}
if (!Strings.isNullOrEmpty(appProfileId)) {
dataSettings.setAppProfileId(appProfileId);
}

configureConnection(dataSettings.stubSettings());
configureUserAgent(dataSettings.stubSettings());
Expand Down

0 comments on commit a47be74

Please sign in to comment.