Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Go async #730

Draft
wants to merge 46 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
9284706
remove csrf for now, so we can update the rest
igalic Jan 21, 2020
e52944e
update rocket*; which gets us stuck in dependency conflicts
igalic Jan 22, 2020
bb5c2b6
update rocket* everywhere!
igalic Jan 22, 2020
ec9b699
convert plume-common to rocket async
igalic Jan 22, 2020
75722ab
rocket does not need decl_macro anymore
igalic Jan 22, 2020
fd9764f
plume-common: also make requests async
igalic Jan 23, 2020
909f677
plume-models: convert admin & api-tokens to async
igalic Jan 23, 2020
944f8c4
plume-models: convert api-tokens. use DbConn::from_request() directly
igalic Jan 23, 2020
ce119ff
start making PlumeRocket async
igalic Jan 25, 2020
59e5c49
convert plume-models to all async
igalic Jan 26, 2020
b515519
start fixing tests in plume-models
igalic Jan 27, 2020
45c335e
"manually" create ETag and Cache-Control headers
igalic Jan 27, 2020
022e037
when using macros!() we need to import the things that they use
igalic Jan 27, 2020
25c5da1
add tokio (0.2) as dependency to further async-ify our FromData code
igalic Jan 29, 2020
a3f165f
Use blocking reqwest API in defer
igalic Jan 29, 2020
3472a58
move ClientBuilder into thread, since we cannot Copy it
igalic Jan 29, 2020
87ce3a7
asyncify plume-models: media upload is now async
igalic Jan 29, 2020
8208859
asyncify from_activity calls (i.e.: block_on())
igalic Feb 13, 2020
a010025
asyncify reqwest calls (again?)
igalic Feb 14, 2020
8aa99ce
move signature outside the spawning
jebrosen Feb 17, 2020
65b2c38
.await? result from read_to_string()
igalic Feb 17, 2020
be8c67e
move reqwest client out of thread spawning
igalic Feb 17, 2020
e9c7259
cargo fmt
igalic Feb 18, 2020
e4bb73d
cargo clippy
igalic Feb 18, 2020
2c285b9
start async-ifying routes
igalic Feb 18, 2020
43cb9f7
update webfinger
igalic Feb 18, 2020
6fe16c9
upgrade and use futures… then block_on .await in a trait?
igalic Feb 18, 2020
097d0ea
make plume-models async (again)
igalic Feb 18, 2020
3c830ab
move towards using #[rocket::async_trait]
igalic May 15, 2020
44ebce5
fix some, break some compiling by adding async/await in front of it
igalic May 16, 2020
850b3c1
add async/.await until all our errors are the same:
igalic May 22, 2020
d2881ee
add async/.await until all our errors are the same: that our Connecti…
igalic May 23, 2020
18bb413
add async/.await until all our errors are the same:
igalic May 24, 2020
7aabb96
upgrade webfinger everywhere, and implement async
igalic May 24, 2020
de6bfca
removed a few unused imports
igalic May 24, 2020
cb1c260
remove an experiment of disabling Send… it makes no sense
igalic May 24, 2020
0726375
add another async (and correctly convert followers_count)
igalic May 24, 2020
07036b5
upgrade validator: it now uses types! in macros!!
igalic May 24, 2020
df44200
replace .map().map_err() with a match
igalic May 24, 2020
cf3708e
make clippy happy by removing unused imports
igalic May 25, 2020
492bbb1
make clippy happy with a weird quirk wrt return
igalic May 25, 2020
7490567
fix warnings about unused doc comments
igalic May 25, 2020
25c40ad
yet another dubious clippy warnings fix re returns
igalic May 25, 2020
a508a41
remove redundant use statements
igalic May 25, 2020
41f97b0
unroll filter_map() to easier .await
igalic May 25, 2020
b596e77
remove redundant use statements
igalic May 25, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ tags.*
search_index
.buildconfig
__pycache__
.vscode/
Loading