Rework misskey fetch to reuse deliver plumbing

Only count server errors towards failed breakers
This commit is contained in:
asonix
2023-02-25 15:02:16 -06:00
parent 667d586160
commit a1ea5d676c
8 changed files with 67 additions and 78 deletions
+1 -5
View File
@@ -67,11 +67,7 @@ impl MyVerify {
actor_id
} else {
match self
.0
.fetch::<PublicKeyResponse>(public_key_id.as_str())
.await
{
match self.0.fetch::<PublicKeyResponse>(&public_key_id).await {
Ok(res) => res.actor_id().ok_or(ErrorKind::MissingId),
Err(e) => {
if e.is_gone() {