mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
69896e90b5
Summary: `RendezVousConnection::new` can block for some time doing work on the CPU, specifically creating the stats objects. This causes problems for other futures during repo construction. Instead, move rendez-vous construction to a `spawn_blocking` closure, so that it doesn't interfere with the other futures. Since `SqlBonsaiHgMapping::from_sql_connections` is not async, and is part of the SqlConstruct trait, we must convert this to the builder pattern so that we can defer rendez-vous construction to later on. Reviewed By: farnz Differential Revision: D27501915 fbshipit-source-id: 9c58c32411301128424985deeab127d052c43532 |
||
---|---|---|
.. | ||
if | ||
schemas | ||
src | ||
test | ||
Cargo.toml |