1
0
mirror of https://github.com/rancher/steve.git synced 2025-09-04 00:44:55 +00:00

Update vendor

This commit is contained in:
Darren Shepherd
2020-03-26 13:56:53 -07:00
parent 7b434b1338
commit 7e84f96c0f
752 changed files with 74843 additions and 9714 deletions

View File

@@ -189,6 +189,8 @@ type Marshaler interface {
// prefixed by a varint-encoded length.
func (p *Buffer) EncodeMessage(pb Message) error {
siz := Size(pb)
sizVar := SizeVarint(uint64(siz))
p.grow(siz + sizVar)
p.EncodeVarint(uint64(siz))
return p.Marshal(pb)
}