improvement: more reliable federation sending

This commit is contained in:
Timo Kösters 2020-10-21 16:08:54 +02:00
parent 18f33b1ece
commit 2f5df4aac9
No known key found for this signature in database
GPG key ID: 24DA7517711A2BA4
4 changed files with 137 additions and 36 deletions

View file

@ -186,7 +186,10 @@ where
let body = reqwest_response
.bytes()
.await
.unwrap()
.unwrap_or_else(|e| {
warn!("server error: {}", e);
Vec::new().into()
}) // TODO: handle timeout
.into_iter()
.collect();