Skip to content

Commit

Permalink
fix context which is used for closing session
Browse files Browse the repository at this point in the history
  • Loading branch information
4el0ve4ek committed Dec 21, 2024
1 parent e827ec1 commit 7385b53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/pool/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

Expand Down

0 comments on commit 7385b53

Please sign in to comment.