mirror of https://github.com/go-redis/redis.git
Use string in append directly.
This commit is contained in:
parent
5f00ff095c
commit
dfde8211d4
|
@ -40,7 +40,7 @@ func appendReq(buf []byte, args []string) []byte {
|
||||||
buf = append(buf, '$')
|
buf = append(buf, '$')
|
||||||
buf = strconv.AppendUint(buf, uint64(len(arg)), 10)
|
buf = strconv.AppendUint(buf, uint64(len(arg)), 10)
|
||||||
buf = append(buf, '\r', '\n')
|
buf = append(buf, '\r', '\n')
|
||||||
buf = append(buf, []byte(arg)...)
|
buf = append(buf, arg...)
|
||||||
buf = append(buf, '\r', '\n')
|
buf = append(buf, '\r', '\n')
|
||||||
}
|
}
|
||||||
return buf
|
return buf
|
||||||
|
|
Loading…
Reference in New Issue