Skip to content

Commit 3eef697

Browse files
chore: remove unused driver arg from metadata_exchange (#431)
1 parent 9dac5b2 commit 3eef697

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

google/cloud/alloydb/connector/connector.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,6 @@ async def connect_async(self, instance_uri: str, driver: str, **kwargs: Any) ->
233233
ip_address,
234234
await conn_info.create_ssl_context(),
235235
enable_iam_auth,
236-
driver,
237236
)
238237
sock = await self._loop.run_in_executor(None, metadata_partial)
239238
connect_partial = partial(connector, sock, **kwargs)
@@ -244,7 +243,7 @@ async def connect_async(self, instance_uri: str, driver: str, **kwargs: Any) ->
244243
raise
245244

246245
def metadata_exchange(
247-
self, ip_address: str, ctx: ssl.SSLContext, enable_iam_auth: bool, driver: str
246+
self, ip_address: str, ctx: ssl.SSLContext, enable_iam_auth: bool
248247
) -> ssl.SSLSocket:
249248
"""
250249
Sends metadata about the connection prior to the database
@@ -272,8 +271,6 @@ def metadata_exchange(
272271
ctx (ssl.SSLContext): Context used to create a TLS connection
273272
with AlloyDB instance ssl certificates.
274273
enable_iam_auth (bool): Flag to enable IAM database authentication.
275-
driver (str): A string representing the database driver to connect with.
276-
Supported drivers are pg8000.
277274
278275
Returns:
279276
sock (ssl.SSLSocket): mTLS/SSL socket connected to AlloyDB Proxy server.

0 commit comments

Comments
 (0)