You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I reviewed the postgres.go file and noticed a potential improvement in the Check() function related to database connection management.
The db.Close() call is missing, which can lead to connection leaks during the connection test process. Adding defer db.Close() right after db = db.Unsafe() could help ensure the database connection is closed after its intended use.
The text was updated successfully, but these errors were encountered: