attic-labs / noms

The versioned, forkable, syncable database
Apache License 2.0
7.45k stars 267 forks source link

Fix issue with marshal caching vrw #3785

Closed arv closed 6 years ago

arv commented 6 years ago

We were caching the encoder function enclosing over the passed in ValueReadWriter. This causes problems when the encoder is used again but with another ValueReadWriter.

Instead, make the internal encoder function take a ValueReadWriter.

arv commented 6 years ago

FYI @tobowers