remove PacketNumberLen from Frame interface Write method

This commit is contained in:
Marten Seemann 2016-05-12 11:22:31 +07:00
parent 060df6be7d
commit aaf4b0ae9e
18 changed files with 59 additions and 59 deletions

View file

@ -21,7 +21,7 @@ type AckFrame struct {
}
// Write writes an ACK frame.
func (f *AckFrame) Write(b *bytes.Buffer, packetNumber protocol.PacketNumber, packetNumberLen protocol.PacketNumberLen, version protocol.VersionNumber) error {
func (f *AckFrame) Write(b *bytes.Buffer, packetNumber protocol.PacketNumber, version protocol.VersionNumber) error {
typeByte := uint8(0x40 | 0x0C)
if f.HasNACK() {