1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-28 06:42:00 +03:00

Exported the setErr function as public

This commit is contained in:
git-hulk
2020-02-03 17:53:47 +08:00
parent a579d58c59
commit d52b11cb42
7 changed files with 34 additions and 34 deletions

View File

@ -20,14 +20,14 @@ type Cmder interface {
readTimeout() *time.Duration
readReply(rd *proto.Reader) error
setErr(error)
SetErr(error)
Err() error
}
func setCmdsErr(cmds []Cmder, e error) {
for _, cmd := range cmds {
if cmd.Err() == nil {
cmd.setErr(e)
cmd.SetErr(e)
}
}
}
@ -119,7 +119,7 @@ func (cmd *baseCmd) stringArg(pos int) string {
return s
}
func (cmd *baseCmd) setErr(e error) {
func (cmd *baseCmd) SetErr(e error) {
cmd.err = e
}