wire: use constants for frame types (#3739)

This commit is contained in:
Marten Seemann
2023-04-19 14:58:31 +02:00
committed by GitHub
parent 48e18b922d
commit 7a393315bd
35 changed files with 118 additions and 100 deletions

View File

@@ -8,7 +8,7 @@ import (
type HandshakeDoneFrame struct{}
func (f *HandshakeDoneFrame) Append(b []byte, _ protocol.VersionNumber) ([]byte, error) {
return append(b, 0x1e), nil
return append(b, handshakeDoneFrameType), nil
}
// Length of a written frame