2
0

ConnPoolConfig embeds ConnConfig

This commit is contained in:
Jack Christensen
2014-05-19 07:59:51 -05:00
parent 9f50796f1b
commit 6d6fb4561a
3 changed files with 16 additions and 16 deletions
+2 -2
View File
@@ -635,8 +635,8 @@ func BenchmarkTimestampTzBinary(b *testing.B) {
}
func BenchmarkConnPool(b *testing.B) {
options := pgx.ConnPoolConfig{MaxConnections: 5}
pool, err := pgx.NewConnPool(*defaultConnConfig, options)
config := pgx.ConnPoolConfig{ConnConfig: *defaultConnConfig, MaxConnections: 5}
pool, err := pgx.NewConnPool(config)
if err != nil {
b.Fatalf("Unable to create connection pool: %v", err)
}