Remove wrap prefix

This commit is contained in:
9seconds
2018-07-08 08:16:21 +03:00
parent a0ba89b105
commit 388f7a23d3
17 changed files with 59 additions and 66 deletions
+2 -2
View File
@@ -20,7 +20,7 @@ const (
var mtprotoFramePadding = []byte{0x04, 0x00, 0x00, 0x00}
type MTProtoFrame struct {
conn WrapStreamReadWriteCloser
conn StreamReadWriteCloser
readSeqNo int32
writeSeqNo int32
}
@@ -142,7 +142,7 @@ func (m *MTProtoFrame) Close() error {
return m.conn.Close()
}
func NewMTProtoFrame(conn WrapStreamReadWriteCloser, seqNo int32) WrapPacketReadWriteCloser {
func NewMTProtoFrame(conn StreamReadWriteCloser, seqNo int32) PacketReadWriteCloser {
return &MTProtoFrame{
conn: conn,
readSeqNo: seqNo,