sapling/blobrepo
Thomas Orozco 5a10c5fbf9 mononoke: convert DB connection instantiation to future
Summary:
Instantiating a new DB connection may require remote calls to be made to e.g. Hipster to allocate a new certificate (this is only the case when connecting to MySQL).

Currently, our bindings to our underlying DB locator make a blocking call to pretend that this operaiton is synchronous: https://fburl.com/ytmljxkb

This isn't ideal, because this call might actually take time, and we might also occasionally want to retry it (we've had issues in our MySQL tests with acquiring certificates that retrying should resolve). Running this synchronously makes doing so inefficient.

This patch doesn't update that, but it fixes everything on the Rust side of things to stop expecting connections to return a `Result` (and to start expecting a Future instead).

In a follow up diff, I'll work on making the changes in common/rust/sql to start returning a Future here.

Reviewed By: StanislavGlebik

Differential Revision: D16221857

fbshipit-source-id: 263f9237ff9394477c65e455de91b19a9de24a20
2019-07-16 03:17:58 -07:00
..
blob_changeset/src mononoke: extract RepoBlobstore and RepoBlobstoreArgs into a separate crate 2019-07-12 10:01:12 -07:00
changeset_fetcher/src rust: Head start on some upcoming warnings 2019-07-12 00:56:44 -07:00
errors/src use derive_manifest for hg 2019-07-12 07:31:05 -07:00
factory/src mononoke: convert DB connection instantiation to future 2019-07-16 03:17:58 -07:00
repo_blobstore/src mononoke: extract RepoBlobstore and RepoBlobstoreArgs into a separate crate 2019-07-12 10:01:12 -07:00
src mononoke: bonsai generation: avoid content fetches 2019-07-15 10:31:12 -07:00
test remove MemoryManifest implementation 2019-07-12 07:31:06 -07:00
Cargo.toml Transition fbcode Rust crates to 2018 edition 2019-06-24 13:15:17 -07:00