output error if sending to trusted key server failed
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
935202eaa3
commit
667db8e8a3
1 changed files with 31 additions and 27 deletions
|
@ -1445,7 +1445,7 @@ impl Service {
|
|||
) -> Result<()> {
|
||||
for server in services().globals.trusted_servers() {
|
||||
info!("Asking batch signing keys from trusted server {}", server);
|
||||
if let Ok(keys) = services()
|
||||
match services()
|
||||
.sending
|
||||
.send_federation_request(
|
||||
server,
|
||||
|
@ -1455,6 +1455,7 @@ impl Service {
|
|||
)
|
||||
.await
|
||||
{
|
||||
Ok(keys) => {
|
||||
debug!("Got signing keys: {:?}", keys);
|
||||
let mut pkm = pub_key_map.write().await;
|
||||
for k in keys.server_keys {
|
||||
|
@ -1479,11 +1480,14 @@ impl Service {
|
|||
|
||||
pkm.insert(k.server_name.to_string(), result);
|
||||
}
|
||||
} else {
|
||||
},
|
||||
Err(e) => {
|
||||
warn!(
|
||||
"Failed sending batched key request to trusted key server {server} for the remote servers \
|
||||
{servers:?}"
|
||||
{:?}: {e}",
|
||||
servers
|
||||
);
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue