mirror of https://github.com/jackc/pgx.git
go fmt
parent
05f94f7107
commit
18e225b66d
4
conn.go
4
conn.go
|
@ -17,7 +17,9 @@ func Connect(options map[string] string) (c *conn, err error) {
|
||||||
|
|
||||||
if socket, present = options["socket"]; present {
|
if socket, present = options["socket"]; present {
|
||||||
c.conn, err = net.Dial("unix", socket)
|
c.conn, err = net.Dial("unix", socket)
|
||||||
if err != nil { return nil, err }
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// conn, err := net.Dial("tcp", "localhost:5432")
|
// conn, err := net.Dial("tcp", "localhost:5432")
|
||||||
|
|
Loading…
Reference in New Issue