Minor changes that don't matter

This commit is contained in:
Tnze
2021-05-24 13:08:06 +08:00
parent 7d4f4db36a
commit 29ce46a244
2 changed files with 3 additions and 17 deletions

View File

@ -82,7 +82,7 @@ func (c *Conn) ReadPacket(p *pk.Packet) error {
//WritePacket write a Packet to Conn.
func (c *Conn) WritePacket(p pk.Packet) error {
return p.Pack(c, c.threshold)
return p.Pack(c.Writer, c.threshold)
}
// SetCipher load the decode/encode stream to this Conn