1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-29 17:41:15 +03:00

Bench bigget values

This commit is contained in:
Vladimir Mihailenco
2018-08-15 09:10:53 +03:00
parent ef3e0e9827
commit cfe305296f
2 changed files with 5 additions and 2 deletions

View File

@ -81,10 +81,11 @@ func (cn *Conn) EnableConcurrentReadWrite() {
}
func (cn *Conn) PrepareWriteBuffer() *proto.WriteBuffer {
if !cn.concurrentReadWrite {
if cn.concurrentReadWrite {
cn.wb.Reset()
} else {
cn.wb.ResetBuffer(cn.Rd.Buffer())
}
cn.wb.Reset()
return cn.wb
}