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

Cleanup of store code #421

Merged
merged 4 commits into from
Oct 25, 2022
Merged

Cleanup of store code #421

merged 4 commits into from
Oct 25, 2022

Conversation

rklaehn
Copy link
Contributor

@rklaehn rklaehn commented Oct 25, 2022

This separates the store code into a LocalStore where all the things happen, that can properly store column family handles etc. and a Store that is just a forwarder for which RpcStore is implemented.

I think this is much nicer. We might want to use spawn_local at the async -> synchronous boundary though.

This is based on #412 , so once that is merged the diff would get smaller.

@rklaehn rklaehn force-pushed the rklaehn/local-gb branch 2 times, most recently from 5de9722 to ce95bd3 Compare October 25, 2022 18:05
LocalStore is completely synchronous and and not Send.
In it we can store column family handles etc. It is the most convenient
place to actually do stuff.
Basically we only have await on create, and where we need it for impl RpcStore.
Copy link
Collaborator

@Arqu Arqu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

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

Successfully merging this pull request may close these issues.

2 participants