Skip to content

Commit aae9728

Browse files
committed
fix README: add await to create_async_connector() call
1 parent 21a38d6 commit aae9728

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ from google.cloud.sql.connector import Connector, create_async_connector
566566

567567
async def main():
568568
# initialize Connector object for connections to Cloud SQL
569-
connector = create_async_connector()
569+
connector = await create_async_connector()
570570

571571
# creation function to generate asyncpg connections as the 'connect' arg
572572
async def getconn(instance_connection_name, **kwargs) -> asyncpg.Connection:

0 commit comments

Comments
 (0)