mirror of https://github.com/jackc/pgx.git
Remove bad error check
parent
31705e586a
commit
180dfe6954
4
conn.go
4
conn.go
|
@ -153,10 +153,6 @@ func connect(ctx context.Context, config *ConnConfig) (c *Conn, err error) {
|
|||
c.log(ctx, LogLevelInfo, "Dialing PostgreSQL server", map[string]interface{}{"host": config.Config.Host})
|
||||
}
|
||||
c.pgConn, err = pgconn.ConnectConfig(ctx, &config.Config)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if err != nil {
|
||||
if c.shouldLog(LogLevelError) {
|
||||
c.log(ctx, LogLevelError, "connect failed", map[string]interface{}{"err": err})
|
||||
|
|
Loading…
Reference in New Issue