Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fetch: fix the nested async runtime caused by block_on()
Summary: Currently, we have two commton `block_on`s: * 1st block_on is in python bindlings for converting Rust async to sync * 2nd block_on is in FetchState.fetch_cas() This diff adds `block_in_place` for the `block_on()` usage inside FetchState.fetch_cas(), so it can be called in an async runtime. Reviewed By: quark-zju Differential Revision: D65861552 fbshipit-source-id: bce677fe86e83db705f31a356829c426ebd743bd
- Loading branch information