Use futures and tokio to send activities #620

Yhdistetty
elegaanz yhdistetty 4 committia lähteestä async-federation kohteeseen master 5 vuotta sitten
elegaanz kommentoi 5 vuotta sitten (Migrated from github.com)

Fixes #252

Publishing an article and having it federated to the whole fediverse only takes a few seconds now (instead of minutes before, on big Plume instances connected to many other ones).

Fixes #252 Publishing an article and having it federated to the whole fediverse only takes a few seconds now (instead of minutes before, on big Plume instances connected to many other ones).
igalic (Migrated from github.com) reviewed 5 vuotta sitten
igalic (Migrated from github.com) jätti kommentin

👀

👀
igalic (Migrated from github.com) kommentoi 5 vuotta sitten

is this comment still relevant?

is this comment still relevant?
igalic (Migrated from github.com) kommentoi 5 vuotta sitten

if this fails, we panic with "new rt".??

if this fails, we panic with "new rt".??
igalic (Migrated from github.com) kommentoi 5 vuotta sitten

i think we should talk about our logging strategy sometime 😅

i think we should talk about our logging strategy sometime 😅
elegaanz (Migrated from github.com) reviewed 5 vuotta sitten
elegaanz (Migrated from github.com) kommentoi 5 vuotta sitten

Not really, but it is for the background jobs in general, for the moment we just spawn them in a separate thread and that's it. I will remove it and create a more general issue.

Not really, but it is for the background jobs in general, for the moment we just spawn them in a separate thread and that's it. I will remove it and create a more general issue.
elegaanz (Migrated from github.com) reviewed 5 vuotta sitten
elegaanz (Migrated from github.com) kommentoi 5 vuotta sitten

Hum… yes, I could probably change that. To be honest I copied this line from reqwest examples without really thinking about it 😅

Hum… yes, I could probably change that. To be honest I copied this line from reqwest examples without really thinking about it :sweat_smile:
elegaanz (Migrated from github.com) reviewed 5 vuotta sitten
elegaanz (Migrated from github.com) kommentoi 5 vuotta sitten

Indeed, we should probably use log and env_logger or something like that. Should I create an issue?

Indeed, we should probably use `log` and `env_logger` or something like that. Should I create an issue?
codecov[bot] kommentoi 5 vuotta sitten (Migrated from github.com)

Codecov Report

Merging #620 into master will increase coverage by 0.08%.
The diff coverage is 26.66%.

@@            Coverage Diff             @@
##           master     #620      +/-   ##
==========================================
+ Coverage   35.28%   35.37%   +0.08%     
==========================================
  Files          68       68              
  Lines        7907     7904       -3     
  Branches     1893     1887       -6     
==========================================
+ Hits         2790     2796       +6     
+ Misses       4345     4338       -7     
+ Partials      772      770       -2
# [Codecov](https://codecov.io/gh/Plume-org/Plume/pull/620?src=pr&el=h1) Report > Merging [#620](https://codecov.io/gh/Plume-org/Plume/pull/620?src=pr&el=desc) into [master](https://codecov.io/gh/Plume-org/Plume/commit/6dbc043a7e4d1757851599859683804bf36a3409?src=pr&el=desc) will **increase** coverage by `0.08%`. > The diff coverage is `26.66%`. ```diff @@ Coverage Diff @@ ## master #620 +/- ## ========================================== + Coverage 35.28% 35.37% +0.08% ========================================== Files 68 68 Lines 7907 7904 -3 Branches 1893 1887 -6 ========================================== + Hits 2790 2796 +6 + Misses 4345 4338 -7 + Partials 772 770 -2 ```
trinity-1686a reviewed 5 vuotta sitten
trinity-1686a jätti kommentin
Omistaja

👀

👀
Omistaja

I think this print should be done in the map just under, otherwise output could get mixed quickly, making both logs useless

I think this print should be done in the map just under, otherwise output could get mixed quickly, making both logs useless
Omistaja

(what is that comma for?)

(what is that comma for?)
elegaanz (Migrated from github.com) reviewed 5 vuotta sitten
elegaanz (Migrated from github.com) kommentoi 5 vuotta sitten

(no idea, I will remove it)

(no idea, I will remove it)
elegaanz (Migrated from github.com) reviewed 5 vuotta sitten
elegaanz (Migrated from github.com) kommentoi 5 vuotta sitten

Actually, it is added by cargo-fmt, because this whole expression is the argument of a function.

Actually, it is added by cargo-fmt, because this whole expression is the argument of a function.
trinity-1686a reviewed 5 vuotta sitten
trinity-1686a hyväksyi nämä muutokset 5 vuotta sitten

Reviewers

trinity-1686a hyväksyi nämä muutokset 5 vuotta sitten
The pull request has been merged as 7ea4acc289.
You can also view command line instructions.

Vaihe 1:

From your project repository, check out a new branch and test the changes.
git checkout -b async-federation master
git pull origin async-federation

Vaihe 2:

Merge the changes and update on Forgejo.
git checkout master
git merge --no-ff async-federation
git push origin master
Sign in to join this conversation.
No reviewers
Ei merkkipaalua
Ei käsittelijää
2 osallistujaa
Ilmoitukset
Määräpäivä
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

Määräpäivää ei asetettu.

Riippuvuudet

Riippuvuuksia ei asetettu.

Reference: Plume/Plume#620
Ladataan…
Sisältöä ei vielä ole.