Skip to content

Commit 2f25c38

Browse files
committed
chore: fix syntax for lazy refresh setup
1 parent eb96baf commit 2f25c38

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

cloud-sql/mysql/servlet/src/main/java/com/example/cloudsql/ConnectorConnectionPoolFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public static DataSource createConnectionPool() {
7777
// to refresh the tokens when they are needed, rather than on a regular interval
7878
// this is recommended for serverless environments to
7979
// avoid background refreshes from throttling CPU.
80-
config.addDataSourceProperty("cloudSqlRefreshStrategy", "lazy")
80+
config.addDataSourceProperty("cloudSqlRefreshStrategy", "lazy");
8181

8282
// ... Specify additional connection properties here.
8383
// [START_EXCLUDE]

cloud-sql/mysql/servlet/src/main/java/com/example/cloudsql/ConnectorIamAuthnConnectionPoolFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public static DataSource createConnectionPool() {
6464
// to refresh the tokens when they are needed, rather than on a regular interval
6565
// this is recommended for serverless environments to
6666
// avoid background refreshes from throttling CPU.
67-
config.addDataSourceProperty("cloudSqlRefreshStrategy", "lazy")
67+
config.addDataSourceProperty("cloudSqlRefreshStrategy", "lazy");
6868

6969

7070
// ... Specify additional connection properties here.

cloud-sql/postgres/servlet/src/main/java/com/example/cloudsql/ConnectorConnectionPoolFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public static DataSource createConnectionPool() {
7676
// to refresh the tokens when they are needed, rather than on a regular interval
7777
// this is recommended for serverless environments to
7878
// avoid background refreshes from throttling CPU.
79-
config.addDataSourceProperty("cloudSqlRefreshStrategy", "lazy")
79+
config.addDataSourceProperty("cloudSqlRefreshStrategy", "lazy");
8080

8181
// ... Specify additional connection properties here.
8282
// [START_EXCLUDE]

cloud-sql/postgres/servlet/src/main/java/com/example/cloudsql/ConnectorIamAuthnConnectionPoolFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public static DataSource createConnectionPool() {
6565
// to refresh the tokens when they are needed, rather than on a regular interval
6666
// this is recommended for serverless environments to
6767
// avoid background refreshes from throttling CPU.
68-
config.addDataSourceProperty("cloudSqlRefreshStrategy", "lazy")
68+
config.addDataSourceProperty("cloudSqlRefreshStrategy", "lazy");
6969

7070
// ... Specify additional connection properties here.
7171
// [START_EXCLUDE]

cloud-sql/sqlserver/servlet/src/main/java/com/example/cloudsql/ConnectorConnectionPoolFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public static DataSource createConnectionPool() {
6565
// to refresh the tokens when they are needed, rather than on a regular interval
6666
// this is recommended for serverless environments to
6767
// avoid background refreshes from throttling CPU.
68-
config.addDataSourceProperty("cloudSqlRefreshStrategy", "lazy")
68+
config.addDataSourceProperty("cloudSqlRefreshStrategy", "lazy");
6969

7070
// ... Specify additional connection properties here.
7171
// [START_EXCLUDE]

0 commit comments

Comments
 (0)