Merge pull request #38 from navi-ppl/TP-55555/kafka-fix

TP-87883 | fix cybertron pipeline
This commit is contained in:
Aman Singh
2024-10-25 13:18:18 +05:30
committed by GitHub

View File

@@ -3,7 +3,6 @@ package db
import (
"cybertron/configs"
"cybertron/pkg/log"
"os"
"time"
"go.uber.org/zap"
@@ -18,7 +17,6 @@ func NewDBClient() *gorm.DB {
db, err := gorm.Open(postgres.Open(postgresConfig.GetPostgresDsn()), &gorm.Config{})
if err != nil {
logger.Error("database connection failed", zap.Error(err))
os.Exit(1)
}
sqlDB, err := db.DB()
if err != nil {