Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

State is not serializable #324

Open
sapostq opened this issue Mar 1, 2023 · 1 comment
Open

State is not serializable #324

sapostq opened this issue Mar 1, 2023 · 1 comment

Comments

@sapostq
Copy link

sapostq commented Mar 1, 2023

Hey,

I'm trying to persist the latest state of the group. However tls::marshal(state) fails as State is not serializable. For our use case in memory caching cannot be relied on. What's the suggested way to achieve this?

Any help would be appreciated.

Thanks

@bifurcation
Copy link
Contributor

You are correct that this is an issue. I think that a PR to make State serializable would be fairly compact -- you would just need to add a TLS_SERIALIZABLE macro invocation to the State definition, and maybe make some of the constituent types also serializable. I would be happy to review a PR, this would be good functionality to have.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants