sapling/cmds
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
..
admin mononoke: convert DB connection instantiation to future 2019-07-16 03:17:58 -07:00
blobrepo_checker/src mononoke: remove local_instances option from cmdlib 2019-07-04 08:03:51 -07:00
blobstore_healer mononoke: convert DB connection instantiation to future 2019-07-16 03:17:58 -07:00
bonsai_verify added new admin subcommand to verify manifest generation logic 2019-07-12 07:31:02 -07:00
tests mononoke/configlint: check locality 2019-05-21 12:25:45 -07:00
aliasverify.rs mononoke: convert DB connection instantiation to future 2019-07-16 03:17:58 -07:00
blobimport.rs mononoke: convert DB connection instantiation to future 2019-07-16 03:17:58 -07:00
configlint.rs mononoke: remove local_instances option from cmdlib 2019-07-04 08:03:51 -07:00
dumprev.rs Convert scm/mononoke to Rust 2018 2019-05-23 11:14:19 -07:00
idxdump.rs Convert scm/mononoke to Rust 2018 2019-05-23 11:14:19 -07:00
populate_healer.rs populate_healer: fix tiemeout and namespace formatting 2019-07-08 04:35:27 -07:00
revlogrepo.rs Apply rustfmt to all rust files 2019-07-10 19:36:32 -07:00