Use blocking reqwest API in defer

defer, or, trait functions such as it in general(?) cannot be async (yet)
This commit is contained in:
Igor Galić
2020-01-29 13:08:20 +01:00
parent 25c5da1a7c
commit a3f165f9f4
4 changed files with 12 additions and 3 deletions
+5 -1
View File
@@ -16,7 +16,6 @@ lazy_static = "1.0"
migrations_internals= "1.4.0"
openssl = "0.10.22"
rocket = { git = "https://github.com/SergioBenitez/Rocket", rev = "async" }
reqwest = "0.10"
scheduled-thread-pool = "0.2.2"
serde = "1.0"
serde_derive = "1.0"
@@ -47,6 +46,11 @@ path = "../plume-common"
[dependencies.plume-macro]
path = "../plume-macro"
[dependencies.reqwest]
features = ["json", "blocking"]
version = "0.10"
[dependencies.rocket_i18n]
git = "https://github.com/Plume-org/rocket_i18n"
branch = "go-async"