Skip to content

Commit d0d9d86

Browse files
chore: update LazyRefresh cache
1 parent 697f9a7 commit d0d9d86

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

google/cloud/sql/connector/instance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def __init__(
5555
"""Initializes a RefreshAheadCache instance.
5656
5757
Args:
58-
conn_name (ConnectionName): The Cloud SQL Instance's
58+
conn_name (ConnectionName): The Cloud SQL instance's
5959
connection name.
6060
client (CloudSQLClient): The Cloud SQL Client instance.
6161
keys (asyncio.Future): A future to the client's public-private key

google/cloud/sql/connector/lazy.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,25 +38,23 @@ class LazyRefreshCache:
3838

3939
def __init__(
4040
self,
41-
instance_connection_string: str,
41+
conn_name: str,
4242
client: CloudSQLClient,
4343
keys: asyncio.Future,
4444
enable_iam_auth: bool = False,
4545
) -> None:
4646
"""Initializes a LazyRefreshCache instance.
4747
4848
Args:
49-
instance_connection_string (str): The Cloud SQL Instance's
50-
connection string (also known as an instance connection name).
49+
conn_name (ConnectionName): The Cloud SQL instance's
50+
connection name.
5151
client (CloudSQLClient): The Cloud SQL Client instance.
5252
keys (asyncio.Future): A future to the client's public-private key
5353
pair.
5454
enable_iam_auth (bool): Enables automatic IAM database authentication
5555
(Postgres and MySQL) as the default authentication method for all
5656
connections.
5757
"""
58-
# validate and parse instance connection name
59-
conn_name = _parse_instance_connection_name(instance_connection_string)
6058
self._project, self._region, self._instance = (
6159
conn_name.project,
6260
conn_name.region,

0 commit comments

Comments
 (0)