Rename pgxpool.NewConfig to NewWithConfig
https://github.com/jackc/pgx/issues/1264
This commit is contained in:
@@ -75,7 +75,7 @@ func main() {
|
||||
log.Fatalln("Unable to parse DATABASE_URL:", err)
|
||||
}
|
||||
|
||||
db, err = pgxpool.NewConfig(context.Background(), poolConfig)
|
||||
db, err = pgxpool.NewWithConfig(context.Background(), poolConfig)
|
||||
if err != nil {
|
||||
log.Fatalln("Unable to create connection pool:", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user