mirror of
https://github.com/redis/go-redis.git
synced 2025-07-28 06:42:00 +03:00
Use string in append directly.
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user