Fix error message

pull/153/head
Akira Chiku 2016-06-06 22:54:33 +09:00
parent 11e1f70c32
commit d05661b5ee
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ func OpenFromConnPool(pool *pgx.ConnPool) (*sql.DB, error) {
stat := pool.Stat()
if stat.MaxConnections <= 2 {
return nil, errors.New("pool connection size must be at least 2")
return nil, errors.New("pool connection size must be at least 3")
}
db.SetMaxIdleConns(stat.MaxConnections - 2)
db.SetMaxOpenConns(stat.MaxConnections)