From 0380e404bdbafe5a22951c58e806702db7d75254 Mon Sep 17 00:00:00 2001 From: Jae Kwon Date: Sun, 17 Jan 2016 21:30:06 -0800 Subject: [PATCH] Conform to go-wire version 0.6.0 --- connection.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connection.go b/connection.go index 9fae4e510..f57f29db4 100644 --- a/connection.go +++ b/connection.go @@ -623,7 +623,7 @@ func (ch *Channel) writeMsgPacketTo(w io.Writer) (n int, err error) { func (ch *Channel) recvMsgPacket(packet msgPacket) ([]byte, error) { // log.Debug("Read Msg Packet", "conn", ch.conn, "packet", packet) if ch.desc.RecvMessageCapacity < len(ch.recving)+len(packet.Bytes) { - return nil, wire.ErrBinaryReadSizeOverflow + return nil, wire.ErrBinaryReadOverflow } ch.recving = append(ch.recving, packet.Bytes...) if packet.EOF == byte(0x01) {