mirror of https://github.com/ledisdb/ledisdb.git
issue 341
This commit is contained in:
parent
d2af45e3fb
commit
cc25d828fb
|
@ -33,7 +33,7 @@ func Connect(addr string) (*Conn, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func ConnectWithSize(addr string, readSize int, writeSize int) (*Conn, error) {
|
func ConnectWithSize(addr string, readSize int, writeSize int) (*Conn, error) {
|
||||||
conn, err := net.Dial(getProto(addr), addr)
|
conn, err := net.DialTimeout(getProto(addr), addr, time.Second*5)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue