Add bytesrwc

This commit is contained in:
9seconds
2018-07-02 10:33:25 +03:00
parent b74cc8d3ea
commit 2c387cc213
3 changed files with 54 additions and 6 deletions
+3 -3
View File
@@ -6,9 +6,9 @@ import (
"encoding/binary"
"net"
"github.com/9seconds/mtg/mtproto"
"github.com/9seconds/mtg/mtproto/bufferpool"
"github.com/juju/errors"
"github.com/9seconds/mtg/mtproto"
)
const (
@@ -33,7 +33,7 @@ type RPCProxyRequest struct {
}
func (r *RPCProxyRequest) Bytes() *bytes.Buffer {
buf := bufferpool.Get()
buf := mtproto.GetBuffer()
flags := r.Flags
if r.Extras.QuickAck {