Skip to content

Commit

Permalink
docs: fix connection pool close call (#1125)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulovitorweb authored Jul 17, 2024
1 parent 258d8a9 commit e848814
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ Web service that computes the requested power of two.
app['pool'] = await asyncpg.create_pool(database='postgres',
user='postgres')
yield
app['pool'].close()
await app['pool'].close()
def init_app():
Expand Down

0 comments on commit e848814

Please sign in to comment.