This commit is contained in:
Muhammed Efe Çetin
2023-03-12 13:17:11 +03:00
parent 5627741945
commit 57f18bb17e
2 changed files with 36 additions and 3 deletions

View File

@@ -50,7 +50,7 @@ func New(config ...Config) *Storage {
var err error
db := cfg.DB
if db == nil {
db, err = pgxpool.New(context.Background(), cfg.dsn())
db, err = pgxpool.New(context.Background(), cfg.getDSN())
if err != nil {
fmt.Fprintf(os.Stderr, "Unable to create connection pool: %v\n", err)
}