fixed test

This commit is contained in:
Josh Baker 2016-08-20 09:57:29 -07:00
parent b110d63709
commit 64611af798
2 changed files with 4 additions and 4 deletions

BIN
logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

View File

@ -142,7 +142,7 @@ func (c *conn) RemoteAddr() string {
// Reader represents a RESP command reader.
type reader struct {
r *net.TCPConn // base reader
r io.Reader // base reader
b []byte // unprocessed bytes
a []byte // static read buffer
}
@ -150,7 +150,7 @@ type reader struct {
const buflen = 1024 * 8
// NewReader returns a RESP command reader.
func newReader(r *net.TCPConn) *reader {
func newReader(r io.Reader) *reader {
return &reader{
r: r,
a: make([]byte, buflen),