Skip to content

Commit 2b2807e

Browse files
JamieMairnomadbl
andauthored
Update src/utils.jl
Co-authored-by: Lior Blech <[email protected]>
1 parent e7992a4 commit 2b2807e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ end
99
function serialize_proto(data)
1010
pb = PipeBuffer()
1111
encode(ProtoEncoder(pb), data)
12-
return view(pb.data, 1:pb.size) # Do not return additional zeros
12+
return take!(pb) # Do not return additional zeros
1313
end
1414

1515
"""

0 commit comments

Comments
 (0)