]> Untitled Git - lemmy.git/commit
Check for dead federated instances (fixes #2221) (#3427)
authorNutomic <me@nutomic.com>
Thu, 13 Jul 2023 14:12:01 +0000 (16:12 +0200)
committerGitHub <noreply@github.com>
Thu, 13 Jul 2023 14:12:01 +0000 (16:12 +0200)
commit7d8cb93b5323eb50bd90afde270685d1ecd07061
tree0a00dc6420199ecc88892ebdb441dc344e69b672
parentc0b7865896b5c2e348e95e2008e699346076b273
Check for dead federated instances (fixes #2221) (#3427)

* Check for dead federated instances (fixes #2221)

* move to apub crate, use timestamp

* make it compile

* clippy

* use moka to cache blocklists, dead instances, restore orig scheduled tasks

* remove leftover last_alive var

* error handling

* wip

* fix alive check for instances without nodeinfo, add coalesce

* clippy

* move federation blocklist cache to #3486

* unused deps
crates/apub/src/activities/mod.rs
crates/db_schema/src/impls/instance.rs
crates/db_schema/src/impls/site.rs
crates/db_schema/src/source/site.rs
src/scheduled_tasks.rs