-
Notifications
You must be signed in to change notification settings - Fork 371
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
backend: make read_conflict synchronous again #2453
Conversation
47b40b1
to
243f14a
Compare
2019579
to
4658b9d
Compare
This avoids rust-lang/futures-rs#2090. I don't think we need to worry about reading legacy conflicts asynchronously - async is really only useful for Google's backend right now, and we don't use the legacy format at Google. In particular, I don't want `MergedTree::value()` to have to be async.
4658b9d
to
19e7e8a
Compare
I may end up switching to |
I'm okay with switching to
Yes. |
Here's what I was thinking:
Does that make sense? |
block_on
from pollster
when reading conflicts
I think that will work, but I don't have async Rust expertise to avoid pitfalls. If we need to select diff algorithms based on async-ness of backends, it might be better to implement non-async backends without using
I don't how many layers we have between tree diff and backends, though. If there are many, propagating sync/asnyc-ness wouldn't be feasible. |
Checklist
If applicable:
CHANGELOG.md