You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Nearly throughout the entire SDK, we use length-prefixing during serialization through a codec. There are a handful of places where this makes sense (e.g. result.Data), but a majority of the business logic does not work with or handle streams, so it makes no sense to length-prefix. Replace all occurrences with non-length-prefix variants.
Why not simplify things by just doing the length-prefixing in runMsgs? The less special context that people writing handlers need to know about, the better. IMHO we could get a way with a single MarshalBinary or Marshal method.
Why not simplify things by just doing the length-prefixing in runMsgs? The less special context that people writing handlers need to know about, the better. IMHO we could get a way with a single MarshalBinary or Marshal method.
We can -- I'm just letting you know the edge cases.
Summary
Nearly throughout the entire SDK, we use length-prefixing during serialization through a codec. There are a handful of places where this makes sense (e.g.
result.Data
), but a majority of the business logic does not work with or handle streams, so it makes no sense to length-prefix. Replace all occurrences with non-length-prefix variants./cc @aaronc
For Admin Use
The text was updated successfully, but these errors were encountered: