From e8488149e4f9c1e1f276ee85bc5f959512af12f9 Mon Sep 17 00:00:00 2001 From: Paulo Freitas <34652880+paulovitorweb@users.noreply.github.com> Date: Wed, 17 Jul 2024 18:45:29 -0300 Subject: [PATCH] docs: fix connection pool close call (#1125) --- docs/usage.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/usage.rst b/docs/usage.rst index 3d36b199..e490a2ef 100644 --- a/docs/usage.rst +++ b/docs/usage.rst @@ -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():