Skip to content

Commit

Permalink
♻️ refactor: updated codebase #2
Browse files Browse the repository at this point in the history
  • Loading branch information
pnguyen215 committed Nov 26, 2023
1 parent a3e8fe0 commit 0598139
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/core/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func (c *CoreCommand) conn() {
defer wg.Done()
psql, s := postgresconn.NewClient(syncconf.Conf.Postgres)
if s.IsConnected {
defer psql.Close()
// defer psql.Close()
}
c.psql = psql
c.psqlStatus = s
Expand All @@ -84,7 +84,7 @@ func (c *CoreCommand) conn() {
defer wg.Done()
msql, s := mysqlconn.NewClient(syncconf.Conf.MySql)
if s.IsConnected {
defer msql.Close()
// defer msql.Close()
}
c.msql = msql
c.msqlStatus = s
Expand All @@ -94,7 +94,7 @@ func (c *CoreCommand) conn() {
defer wg.Done()
redis, s := redisconn.NewClient(syncconf.Conf.Redis)
if s.IsConnected {
defer redis.Close()
// defer redis.Close()
}
c.redis = redis
c.redisStatus = s
Expand All @@ -104,7 +104,7 @@ func (c *CoreCommand) conn() {
defer wg.Done()
rabbitmq, s := rabbitmqconn.NewClient(syncconf.Conf.RabbitMq)
if s.IsConnected {
defer rabbitmq.Close()
// defer rabbitmq.Close()
}
c.rabbitmq = rabbitmq
c.rabbitmqStatus = s
Expand Down

0 comments on commit 0598139

Please sign in to comment.