Address some review issues fmt, errors, comments

This commit is contained in:
Devin Ragotzy
2020-11-15 16:48:43 -05:00
committed by Timo Kösters
parent 86bb93f8cf
commit bb24f6ad90
7 changed files with 50 additions and 39 deletions

View File

@@ -519,7 +519,6 @@ async fn join_room_by_id_helper(
canon_json_stub.remove("event_id");
// In order to create a compatible ref hash (EventID) the `hashes` field needs to be present
// who the hell knew...
ruma::signatures::hash_and_sign_event(
db.globals.server_name().as_str(),
db.globals.keypair(),
@@ -602,7 +601,6 @@ async fn join_room_by_id_helper(
)))) // Add join event we just created
.map(|r| {
let (event_id, value) = r?;
// TODO remove .clone when I remove debug logging
state_res::StateEvent::from_id_value(event_id.clone(), value.clone())
.map(|ev| (event_id, Arc::new(ev)))
.map_err(|e| {