quicvarint: add Reader and Writer interfaces (#3233)

This commit is contained in:
Randy Reddig
2021-08-05 10:49:17 -07:00
committed by GitHub
parent 79ce9740a4
commit 346bd63a60
6 changed files with 171 additions and 53 deletions

View File

@@ -148,7 +148,7 @@ func (c *client) handleUnidirectionalStreams() {
}
go func() {
streamType, err := quicvarint.Read(&byteReaderImpl{str})
streamType, err := quicvarint.Read(quicvarint.NewReader(str))
if err != nil {
c.logger.Debugf("reading stream type on stream %d failed: %s", str.StreamID(), err)
return