forked from quic-go/quic-go
rename frame.MaxLength() to frame.MinLength()
This commit is contained in:
@@ -46,8 +46,8 @@ func ParseConnectionCloseFrame(r *bytes.Reader) (*ConnectionCloseFrame, error) {
|
||||
return frame, nil
|
||||
}
|
||||
|
||||
// MaxLength of a written frame
|
||||
func (f *ConnectionCloseFrame) MaxLength() int {
|
||||
// MinLength of a written frame
|
||||
func (f *ConnectionCloseFrame) MinLength() int {
|
||||
return 1 + 4 + 2 + len(f.ReasonPhrase)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user