From 7385b53d43ddee30fae1041d56618c3aeb755d33 Mon Sep 17 00:00:00 2001 From: Daniil Aksenov Date: Sat, 21 Dec 2024 18:52:38 +0300 Subject: [PATCH] fix context which is used for closing session --- internal/pool/pool.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/pool/pool.go b/internal/pool/pool.go index fcb1234d4..00eb387c1 100644 --- a/internal/pool/pool.go +++ b/internal/pool/pool.go @@ -302,7 +302,7 @@ func makeAsyncCloseItemFunc[PT ItemConstraint[T], T any]( defer closeItemCancel() if d := p.config.closeTimeout; d > 0 { - closeItemCtx, closeItemCancel = xcontext.WithTimeout(ctx, d) + closeItemCtx, closeItemCancel = xcontext.WithTimeout(closeItemCtx, d) defer closeItemCancel() }