1
0
mirror of https://github.com/redis/go-redis.git synced 2025-11-24 18:41:04 +03:00

Separate read and write buffers for PubSub.

This commit is contained in:
Vladimir Mihailenco
2017-02-19 09:42:45 +02:00
parent a40c8d17fe
commit 6b6f5ca133
5 changed files with 12 additions and 13 deletions

View File

@@ -12,9 +12,9 @@ type WriteBuffer struct {
b []byte
}
func NewWriteBuffer(b []byte) *WriteBuffer {
func NewWriteBuffer() *WriteBuffer {
return &WriteBuffer{
b: b,
b: make([]byte, 0, 4096),
}
}