Replies: 1 comment 5 replies
-
It should be better to close both Also, you should not set max open conns in the db.SetMaxOpenConns(maxConns) |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Since the pgx pool handles the underlying connections, is it necessary to close both
*sql.DB
and*pgxpool.Pool
, or is closing the pgxpool enough?Beta Was this translation helpful? Give feedback.
All reactions