diff options
author | Teddy Wing | 2021-06-06 04:09:31 +0200 |
---|---|---|
committer | Teddy Wing | 2021-06-06 04:09:31 +0200 |
commit | 5539a9e8cc6e0b348f0428502b80ba32843ec36a (patch) | |
tree | 657434730a47df33de8830b74aea11250343e65b /Cargo.toml | |
parent | 6d5a4095ba4fd78707dc6a8d6321d72ebfc80f1c (diff) | |
download | reflectub-5539a9e8cc6e0b348f0428502b80ba32843ec36a.tar.bz2 |
Make repo mirroring multi-threaded
I think, at least. Took a lot of research and trial and error to get
this to compile, working out how to set up the multi-threading for async
code. The idea here is to be able to process each repo in potentially
multiple threads and do that processing work in parallel.
Diffstat (limited to 'Cargo.toml')
-rw-r--r-- | Cargo.toml | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -8,12 +8,13 @@ anyhow = "1.0.40" chrono = "0.4.19" exitcode = "1.1.2" filetime = "0.2.14" +futures = { version = "0.3.15", features = ["thread-pool"] } getopts = "0.2.21" git2 = "0.13.20" reqwest = { version = "0.11.3", features = ["json"] } serde = { version = "1.0.126", features = ["derive"] } thiserror = "1.0.25" -tokio = { version = "1.6.1", features = ["macros", "rt"] } +tokio = { version = "1.6.1", features = ["macros", "rt-multi-thread"] } [dependencies.sqlx] version = "0.5.5" |