mirror of https://github.com/tidwall/redcon.git
fixed test
This commit is contained in:
parent
b110d63709
commit
64611af798
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue