Merge remote-tracking branch 'origin/fix-timeout' into ap07

This commit is contained in:
Kitaiti Makoto
2022-05-05 10:42:03 +09:00
7 changed files with 224 additions and 146 deletions
+1 -1
View File
@@ -366,7 +366,7 @@ pub trait FromId<C>: Sized {
) -> Result<Self::Object, (Option<serde_json::Value>, Self::Error)> {
request::get(id, Self::get_sender(), proxy)
.map_err(|_| (None, InboxError::DerefError))
.and_then(|mut r| {
.and_then(|r| {
let json: serde_json::Value = r
.json()
.map_err(|_| (None, InboxError::InvalidObject(None)))?;