mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-09-01 06:24:01 +03:00
Remove mtproto pool
This commit is contained in:
@@ -15,7 +15,7 @@ type RPCNonceResponse struct {
|
||||
Crypto [rpcNonceCryptoAESLength]byte
|
||||
}
|
||||
|
||||
func (r *RPCNonceResponse) Bytes() *bytes.Buffer {
|
||||
func (r *RPCNonceResponse) Bytes() []byte {
|
||||
buf := &bytes.Buffer{}
|
||||
buf.Grow(rpcNonceResponseLength)
|
||||
|
||||
@@ -25,7 +25,7 @@ func (r *RPCNonceResponse) Bytes() *bytes.Buffer {
|
||||
buf.Write(r.CryptoTS[:])
|
||||
buf.Write(r.Nonce[:])
|
||||
|
||||
return buf
|
||||
return buf.Bytes()
|
||||
}
|
||||
|
||||
func (r *RPCNonceResponse) Valid(req *RPCNonceRequest) error {
|
||||
|
||||
Reference in New Issue
Block a user