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
The query data types (LeafQueryData, BlockQueryData, etc) need to implement Deserialize to work nicely with surf-disco. I would suggest adding a version field to each of these as the first field (again, we can always pull this version from the database whenever we need to construct one of these) and manually implementing deserialize to first read the version, then the remaining fields, using Deserialize for normal fields and DeserializeForVersion for HotShot types.
This manual deserialize implementation might be pretty verbose and repetitive, so ideally we could find some way to do it with serde attributes or potentially write our own macro
The text was updated successfully, but these errors were encountered:
The query data types (LeafQueryData, BlockQueryData, etc) need to implement Deserialize to work nicely with surf-disco. I would suggest adding a version field to each of these as the first field (again, we can always pull this version from the database whenever we need to construct one of these) and manually implementing deserialize to first read the version, then the remaining fields, using Deserialize for normal fields and DeserializeForVersion for HotShot types.
This manual deserialize implementation might be pretty verbose and repetitive, so ideally we could find some way to do it with serde attributes or potentially write our own macro
The text was updated successfully, but these errors were encountered: