improvement: more reliable federation sending
This commit is contained in:
parent
18f33b1ece
commit
2f5df4aac9
4 changed files with 137 additions and 36 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue