|
|
@ -36,7 +36,7 @@ func HSet(key, field, value string, url ...string) (uint64, error) { |
|
|
|
conn, _, err := Conn(url...) |
|
|
|
|
|
|
|
if err != nil { |
|
|
|
return "", err |
|
|
|
return 0, err |
|
|
|
} |
|
|
|
defer conn.Close() |
|
|
|
|
|
|
@ -47,7 +47,7 @@ func HSet(key, field, value string, url ...string) (uint64, error) { |
|
|
|
err = conn.HSet(req, res) |
|
|
|
|
|
|
|
if err != nil { |
|
|
|
return "", err |
|
|
|
return 0, err |
|
|
|
} |
|
|
|
|
|
|
|
return res.GetRet(), nil |
|
|
|