File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ func (c *CoreCommand) conn() {
7474 defer wg .Done ()
7575 psql , s := postgresconn .NewClient (syncconf .Conf .Postgres )
7676 if s .IsConnected {
77- defer psql .Close ()
77+ // defer psql.Close()
7878 }
7979 c .psql = psql
8080 c .psqlStatus = s
@@ -84,7 +84,7 @@ func (c *CoreCommand) conn() {
8484 defer wg .Done ()
8585 msql , s := mysqlconn .NewClient (syncconf .Conf .MySql )
8686 if s .IsConnected {
87- defer msql .Close ()
87+ // defer msql.Close()
8888 }
8989 c .msql = msql
9090 c .msqlStatus = s
@@ -94,7 +94,7 @@ func (c *CoreCommand) conn() {
9494 defer wg .Done ()
9595 redis , s := redisconn .NewClient (syncconf .Conf .Redis )
9696 if s .IsConnected {
97- defer redis .Close ()
97+ // defer redis.Close()
9898 }
9999 c .redis = redis
100100 c .redisStatus = s
@@ -104,7 +104,7 @@ func (c *CoreCommand) conn() {
104104 defer wg .Done ()
105105 rabbitmq , s := rabbitmqconn .NewClient (syncconf .Conf .RabbitMq )
106106 if s .IsConnected {
107- defer rabbitmq .Close ()
107+ // defer rabbitmq.Close()
108108 }
109109 c .rabbitmq = rabbitmq
110110 c .rabbitmqStatus = s
You can’t perform that action at this time.
0 commit comments