Skip to content

Commit

Permalink
turn off ssl when using env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
tedim52 committed Aug 16, 2024
1 parent 77b96c5 commit 093e1ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cartservice/cartstore/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func NewDb(
if uri != "" {
dsn = uri
} else {
dsn = fmt.Sprintf("host=%s user=%s password=%s dbname=%s port=%s sslmode=require", host, username, password, name, port)
dsn = fmt.Sprintf("host=%s user=%s password=%s dbname=%s port=%s", host, username, password, name, port)
}
maxRetries := 5
initialBackoff := 1 * time.Second
Expand Down

0 comments on commit 093e1ce

Please sign in to comment.