Skip to content

Commit 2385f4f

Browse files
authored
doc: Fix example for create_async_connector in the README (#1301)
An example is missing an await.
1 parent 0e87943 commit 2385f4f

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)