mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 18:44:02 +03:00
Remove wrap prefix
This commit is contained in:
@@ -13,7 +13,7 @@ import (
|
||||
const mtprotoIntermediateQuickAckLength = 0x80000000
|
||||
|
||||
type MTProtoIntermediate struct {
|
||||
conn WrapStreamReadWriteCloser
|
||||
conn StreamReadWriteCloser
|
||||
opts *mtproto.ConnectionOpts
|
||||
|
||||
readCounter uint32
|
||||
@@ -111,7 +111,7 @@ func (m *MTProtoIntermediate) Close() error {
|
||||
return m.conn.Close()
|
||||
}
|
||||
|
||||
func NewMTProtoIntermediate(conn WrapStreamReadWriteCloser, opts *mtproto.ConnectionOpts) WrapPacketReadWriteCloser {
|
||||
func NewMTProtoIntermediate(conn StreamReadWriteCloser, opts *mtproto.ConnectionOpts) PacketReadWriteCloser {
|
||||
return &MTProtoIntermediate{
|
||||
conn: conn,
|
||||
opts: opts,
|
||||
|
||||
Reference in New Issue
Block a user