Remove mtproto pool

This commit is contained in:
9seconds
2018-07-02 15:44:52 +03:00
parent 5ea0c4f7bf
commit 6fa5f31ca8
10 changed files with 23 additions and 118 deletions
+2 -2
View File
@@ -15,7 +15,7 @@ type RPCHandshakeResponse struct {
PeerPID [rpcHandshakePeerPIDLength]byte
}
func (r *RPCHandshakeResponse) Bytes() *bytes.Buffer {
func (r *RPCHandshakeResponse) Bytes() []byte {
buf := &bytes.Buffer{}
buf.Grow(rpcHandshakeResponseLength)
@@ -24,7 +24,7 @@ func (r *RPCHandshakeResponse) Bytes() *bytes.Buffer {
buf.Write(r.SenderPID[:])
buf.Write(r.PeerPID[:])
return buf
return buf.Bytes()
}
func (r *RPCHandshakeResponse) Valid(req *RPCHandshakeRequest) error {