We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f97e95 commit 53830a8Copy full SHA for 53830a8
internal/handshake/covenant.go
@@ -43,12 +43,12 @@ func (c *GenericCovenant) Decode(r io.Reader) error {
43
if err := binary.Read(r, binary.LittleEndian, &c.Type); err != nil {
44
return err
45
}
46
- itemCount, err := binary.ReadUvarint(r.(io.ByteReader))
+ itemCount, err := ReadUvarintReader(r)
47
if err != nil {
48
49
50
for range itemCount {
51
- itemLength, err := binary.ReadUvarint(r.(io.ByteReader))
+ itemLength, err := ReadUvarintReader(r)
52
53
54
0 commit comments