Use futures and tokio to send activities #620

Apvienots
elegaanz Iekļāva 4 iesūtījumus no async-federation zarā master 2019-06-27 16:46:05 +00:00
elegaanz pievienoja piebildi 2019-06-18 21:21:28 +00:00 (Pārcelta 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 (Pārcelta no github.com) izskatīja 2019-06-18 22:50:35 +00:00
igalic (Pārcelta no github.com) pievienoja piebildi

👀

👀
igalic (Pārcelta no github.com) pievienoja piebildi 2019-06-18 22:48:23 +00:00

is this comment still relevant?

is this comment still relevant?
igalic (Pārcelta no github.com) pievienoja piebildi 2019-06-18 22:49:00 +00:00

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

if this fails, we panic with "new rt".??
igalic (Pārcelta no github.com) pievienoja piebildi 2019-06-18 22:50:19 +00:00

i think we should talk about our logging strategy sometime 😅

i think we should talk about our logging strategy sometime 😅
elegaanz (Pārcelta no github.com) izskatīja 2019-06-19 07:25:47 +00:00
elegaanz (Pārcelta no github.com) pievienoja piebildi 2019-06-19 07:25:47 +00:00

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 (Pārcelta no github.com) izskatīja 2019-06-19 07:26:33 +00:00
elegaanz (Pārcelta no github.com) pievienoja piebildi 2019-06-19 07:26:33 +00:00

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 (Pārcelta no github.com) izskatīja 2019-06-19 07:27:26 +00:00
elegaanz (Pārcelta no github.com) pievienoja piebildi 2019-06-19 07:27:26 +00:00

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] pievienoja piebildi 2019-06-19 07:44:46 +00:00 (Pārcelta 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 izskatīja 2019-06-27 10:14:23 +00:00
trinity-1686a pievienoja piebildi
Ī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 (Pārcelta no github.com) izskatīja 2019-06-27 12:41:07 +00:00
elegaanz (Pārcelta no github.com) pievienoja piebildi 2019-06-27 12:41:07 +00:00

(no idea, I will remove it)

(no idea, I will remove it)
elegaanz (Pārcelta no github.com) izskatīja 2019-06-27 16:13:00 +00:00
elegaanz (Pārcelta no github.com) pievienoja piebildi 2019-06-27 16:12:59 +00:00

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 izskatīja 2019-06-27 16:27:33 +00:00
Īpašnieks

okay...

okay...
trinity-1686a apstiprināja šīs izmaiņas 2019-06-27 16:28:39 +00:00
Nepieciešams pieteikties, lai pievienotos šai sarunai.
Nav izskatītāju
Nav atskaites punkta
Nav projektu
Nav atbildīgo
2 dalībnieki
Paziņojumi
Izpildes datums
Izpildes datums nav derīgs vai tas ir ārpus datumu apgabala. Lūgums izmantot pierakstu "gggg-mm-dd".

Nav uzstādīts izpildes datums.

Atkarības

Nav atkarību.

Atsauce: Plume/Plume#620
Nav sniegts apraksts.