Use futures and tokio to send activities #620

Sapludināts
elegaanz sapludināja 4 revīzijas no async-federation uz master pirms 5 gadiem
elegaanz " komentēja pirms 5 gadiem" (Migrēts no 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 (Migrēts no github.com) recenzēja pirms 5 gadiem
igalic (Migrēts no github.com) atstāja komentāru

👀

👀
igalic (Migrēts no github.com) " komentēja pirms 5 gadiem"

is this comment still relevant?

is this comment still relevant?
igalic (Migrēts no github.com) " komentēja pirms 5 gadiem"

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

if this fails, we panic with "new rt".??
igalic (Migrēts no github.com) " komentēja pirms 5 gadiem"

i think we should talk about our logging strategy sometime 😅

i think we should talk about our logging strategy sometime 😅
elegaanz (Migrēts no github.com) recenzēja pirms 5 gadiem
elegaanz (Migrēts no github.com) " komentēja pirms 5 gadiem"

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 (Migrēts no github.com) recenzēja pirms 5 gadiem
elegaanz (Migrēts no github.com) " komentēja pirms 5 gadiem"

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 (Migrēts no github.com) recenzēja pirms 5 gadiem
elegaanz (Migrēts no github.com) " komentēja pirms 5 gadiem"

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] " komentēja pirms 5 gadiem" (Migrēts no 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 recenzēja pirms 5 gadiem
trinity-1686a atstāja komentāru
Īpašnieks

👀

👀
Īpašnieks

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
Īpašnieks

(what is that comma for?)

(what is that comma for?)
elegaanz (Migrēts no github.com) recenzēja pirms 5 gadiem
elegaanz (Migrēts no github.com) " komentēja pirms 5 gadiem"

(no idea, I will remove it)

(no idea, I will remove it)
elegaanz (Migrēts no github.com) recenzēja pirms 5 gadiem
elegaanz (Migrēts no github.com) " komentēja pirms 5 gadiem"

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 recenzēja pirms 5 gadiem
Īpašnieks

okay...

okay...
trinity-1686a apstiprināja izmaiņas pirms 5 gadiem

Recenzenti

trinity-1686a apstiprināja izmaiņas pirms 5 gadiem
Izmaiņu pieprasījums tika sapludināts ar revīziju 7ea4acc289.
Varat aplūkot arī komandrindas instrukcijas.

Solis 1:

Projekta repozitorijā izveidojiet jaunu jaunu atzaru un pārbaudiet savas izmaiņas.
git checkout -b async-federation master
git pull origin async-federation

Solis 2:

Sapludināt izmaiņas un atjaunot tās Forgejo.
git checkout master
git merge --no-ff async-federation
git push origin master
Pierakstieties, lai pievienotos šai sarunai.
Nav recenzentu
Nav atskaites punktu
Nav atbildīgo
2 dalībnieki
Paziņojumi
Izpildes termiņš
Datums līdz nav korekts. Izmantojiet formātu 'gggg-mm-dd'.

Izpildes termiņš nav uzstādīts.

Atkarības

Nav atkarību.

Atsaucas uz: Plume/Plume#620
Notiek ielāde…
Vēl nav satura.