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:
@@ -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),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user