rename frame.MaxLength() to frame.MinLength()

This commit is contained in:
Marten Seemann
2016-04-26 17:02:00 +07:00
parent 8f221e6eab
commit f204b088a6
11 changed files with 25 additions and 25 deletions

View File

@@ -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)
}