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
The code above adds a utility function to quickly access config.Db()
But the function config.Db() creates a new connection each time with the code below:
That means each request to the HTTP server will re-create the database connection. I wonder if this is something you made on purpose or you missed this point. I am a newbie at go-lang so I'd like to know.
Thanks for this inspiring project.
The text was updated successfully, but these errors were encountered:
The code above adds a utility function to quickly access config.Db()
But the function config.Db() creates a new connection each time with the code below:
That means each request to the HTTP server will re-create the database connection. I wonder if this is something you made on purpose or you missed this point. I am a newbie at go-lang so I'd like to know.
Thanks for this inspiring project.
The text was updated successfully, but these errors were encountered: