Use request::get() instead of ClientBuilder

This commit is contained in:
Kitaiti Makoto
2021-12-05 19:32:27 +09:00
parent 48fab8ad2c
commit 25fe2ad802
4 changed files with 41 additions and 112 deletions
+7 -1
View File
@@ -17,7 +17,7 @@ extern crate serde_json;
extern crate tantivy;
use once_cell::sync::Lazy;
use plume_common::activity_pub::{inbox::InboxError, sign};
use plume_common::activity_pub::{inbox::InboxError, request, sign};
use posts::PostEvent;
use riker::actors::{channel, ActorSystem, ChannelRef, SystemBuilder};
use users::UserEvent;
@@ -157,6 +157,12 @@ impl From<InboxError<Error>> for Error {
}
}
impl From<request::Error> for Error {
fn from(_err: request::Error) -> Error {
Error::Request
}
}
pub type Result<T> = std::result::Result<T, Error>;
/// Adds a function to a model, that returns the first