mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 07:41:23 +01:00
Take iterator in calculate_hash()
Avoids unnecessary allocations.
This commit is contained in:
parent
cce83beedb
commit
f1642c92d1
5 changed files with 24 additions and 33 deletions
|
|
@ -1860,7 +1860,7 @@ pub(crate) async fn create_invite_route(
|
|||
events: vec![pdu.to_room_event()],
|
||||
txn_id:
|
||||
base64::engine::general_purpose::URL_SAFE_NO_PAD
|
||||
.encode(utils::calculate_hash(&[pdu
|
||||
.encode(utils::calculate_hash([pdu
|
||||
.event_id()
|
||||
.as_bytes()]))
|
||||
.into(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue