fix: cap mysql connection pool

This commit is contained in:
richjohnrambo
2026-09-27 18:36:00 +08:00
parent 4f69dc302b
commit 5bf68727fa
4 changed files with 40 additions and 9 deletions
+3 -1
View File
@@ -1,7 +1,9 @@
{
"listen": ":6061",
"mysql": {
"dsn": "root:root@tcp(127.0.0.1:3306)/meeting_im?parseTime=true&charset=utf8mb4,utf8&loc=Local"
"dsn": "root:root@tcp(127.0.0.1:3306)/meeting_im?parseTime=true&charset=utf8mb4,utf8&loc=Local",
"max_open_conns": 15,
"max_idle_conns": 5
},
"redis": {
"addr": "127.0.0.1:6379",