Skip to content

Commit e848814

Browse files
docs: fix connection pool close call (#1125)
1 parent 258d8a9 commit e848814

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/usage.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ Web service that computes the requested power of two.
442442
app['pool'] = await asyncpg.create_pool(database='postgres',
443443
user='postgres')
444444
yield
445-
app['pool'].close()
445+
await app['pool'].close()
446446
447447
448448
def init_app():

0 commit comments

Comments
 (0)