mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 23:14:02 +03:00
Remove mtproto pool
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user