improvement: update ruma

This commit is contained in:
Timo Kösters 2021-04-22 11:26:20 +02:00
parent 1f84013b2a
commit 6e84d317b2
No known key found for this signature in database
GPG key ID: 24DA7517711A2BA4
8 changed files with 106 additions and 125 deletions

View file

@ -4,7 +4,6 @@ use ruma::{
identifiers::{DeviceId, UserId},
Outgoing,
};
use std::collections::BTreeMap;
use std::ops::Deref;
#[cfg(feature = "conduit_bin")]
@ -27,6 +26,7 @@ use {
signatures::CanonicalJsonValue,
ServerName,
},
std::collections::BTreeMap,
std::convert::TryFrom,
std::io::Cursor,
};
@ -265,7 +265,10 @@ where
match ruma::signatures::verify_json(&pub_key_map, &request_map) {
Ok(()) => (None, None, false),
Err(e) => {
warn!("Failed to verify json request: {}: {:?} {:?}", e, pub_key_map, request_map);
warn!(
"Failed to verify json request: {}: {:?} {:?}",
e, pub_key_map, request_map
);
// Forbidden
return Failure((Status::raw(580), ()));