Skip to content

Commit

Permalink
Test socket connection
Browse files Browse the repository at this point in the history
  • Loading branch information
Goginet committed Jul 24, 2024
1 parent 019ca23 commit 0ee2801
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions db/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,12 @@ func GetConfigPool(logger logger.Logger) *pgxpool.Config {

func GetConnString(cfg *Config) string {
return fmt.Sprintf(
"%s://%s:%s@%s:%d/%s?application_name=%s",
"%s:///%s?host=%s&user=%s&password=%s",
cfg.Type,
cfg.Database,
cfg.Host,
cfg.User,
cfg.Password,
cfg.Host,
cfg.Port,
cfg.Database,
cfg.AppName,
)
}

Expand Down

0 comments on commit 0ee2801

Please sign in to comment.