From 093e1ce8b030d40015d27ad3d16d682e17791ad6 Mon Sep 17 00:00:00 2001 From: Tedi Mitiku Date: Fri, 16 Aug 2024 12:48:49 -0400 Subject: [PATCH] turn off ssl when using env vars --- src/cartservice/cartstore/db.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cartservice/cartstore/db.go b/src/cartservice/cartstore/db.go index 0b9e53b..ed6d77b 100644 --- a/src/cartservice/cartstore/db.go +++ b/src/cartservice/cartstore/db.go @@ -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